Geocoding loop
Sep. 25th, 2019 12:24 pmWe use 2 geocoding providers: Mapbox (primary) and Google Maps (as a backup when Mapbox produces weird results).
Using 2 geocoding providers, occasionally, causes weird data collisions.
For example:
Mapbox API geocodes "north beach, MD,20714" as "west beach, MD,20714", but Google Maps API geocodes "west beach, MD,20714" as "north beach, MD,20714".
That, effectively, forms geocoding loop:
~~~~~~~
west beach, MD,20714
north beach, MD,20714
west beach, MD,20714
north beach, MD,20714
west beach, MD,20714
...
~~~~~~~
This geocoding loop may cause infinite redirect between job list web pages:
-----
"West beach" jobs page redirects to "North beach" jobs page.
"North beach" jobs page redirects to "West beach" jobs page.
...
-----
Yesterday we launched Geocoding loop detection code, and found over 50 geocoding loops in our 901,016 records GeocodedLocation table.
Some other geocoding loops examples:
=======
san francisco,ca,94105 <-> south beach,ca,94105
northeast washington,dc,20018 <-> washington,dc,20018
miami,fl,33132 <-> downtown,fl,33132
far rockaway,ny,11691 <-> queens,ny,11691
kankan,guinea <-> kankan region,guinea
amhara,ethiopia <-> amhara region,ethiopia
jigawa,nigeria <-> jigawa state,nigeria
manzini district,swaziland <-> manzini,swaziland
=======
Using 2 geocoding providers, occasionally, causes weird data collisions.
For example:
Mapbox API geocodes "north beach, MD,20714" as "west beach, MD,20714", but Google Maps API geocodes "west beach, MD,20714" as "north beach, MD,20714".
That, effectively, forms geocoding loop:
~~~~~~~
west beach, MD,20714
north beach, MD,20714
west beach, MD,20714
north beach, MD,20714
west beach, MD,20714
...
~~~~~~~
This geocoding loop may cause infinite redirect between job list web pages:
-----
"West beach" jobs page redirects to "North beach" jobs page.
"North beach" jobs page redirects to "West beach" jobs page.
...
-----
Yesterday we launched Geocoding loop detection code, and found over 50 geocoding loops in our 901,016 records GeocodedLocation table.
Some other geocoding loops examples:
=======
san francisco,ca,94105 <-> south beach,ca,94105
northeast washington,dc,20018 <-> washington,dc,20018
miami,fl,33132 <-> downtown,fl,33132
far rockaway,ny,11691 <-> queens,ny,11691
kankan,guinea <-> kankan region,guinea
amhara,ethiopia <-> amhara region,ethiopia
jigawa,nigeria <-> jigawa state,nigeria
manzini district,swaziland <-> manzini,swaziland
=======