The Geographical Oddity of Null Island
blogs.loc.gov
blogs.loc.gov
Outputting a valid value as an error flag seems like a pretty bad idea - is this actually common?
In part because the usual exceptional value, -1, is also a valid latitude and longitude.
The strangest coordinates I've ever seen were from around (118, -183), which also didn't appear to be a hand-selected error case, but the numbers would work for one. Personally, I like to think those are the coordinates of Santa Claus's house.
I used Google Maps embed last week and a 'elementary error' in my code meant that I was getting 'null island' quite consistently. I had a string with the latitude and longitude in, I just needed a bit of code to write out the map marker and center location for the frontend javascript. I was taking a string with 'lat, lon' and parsing it into an array, but doing it wrongly, i.e. with my own special syntax, so, instead of sending the latitude as '53.1234' I was sending the latitude of '5' and the longitude of '3' (having not made the string into an array).
I also had to battle with loading the map under a CSS in-page 'tab' (rather than browser tab) and you have to remember how to get it to load centered and not as a grey rectangle. Therefore getting to Null Island rather than a grey rectangle or a js error is pretty good. I then know I just have some problem like described earlier of mixing the lat/lon somehow.
Consequently for me, 'Null Island' rather than '-999,+999' is a good thing, I can at least load a map.
Unfortunately, there are no bike stations in the vicinity. It's lonely out here.
I checked the page, and sure enough it worked. On a hunch I zoomed out, only to see a couple of them parked on null island