What map projection (SRID) does Foursquare use for its latitude and longitude coordinates? I would have asked FourSquare support directly, but their support link links here. So I need to type a very long question to ask something very simple in order to meet Stack Overflow's requirements.
Are you after the base map projection? If so, those are MapBox tiles, which are EPSG:3857 aka Web Mercator.
In the description you mention
latitude and longitude coordinates
So I'm a bit confused - it would be very odd if anything but WGS84 / EPSG:4326 is used to refer to locations on FourSquare.
Related
I am developing a Map based iOS app in Objective C. Basically what I need to achieve is to get the details data of suggested location that is within 5 kilo meter to the current user location without using Google API. I have searched a lot but could not find any answer to my question.
I tried below links related to my problem but could not get satisfactory solution :
how to find nearest latitude and longitude form current place?
get nearest locations from my current location
http://api.geonames.org/findNearbyPlaceNameJSON?lat=12.9972&lng=77.6143&radius=5&username=demo
How to get the nearest area from a list of locations?
I want to know if there is some other good and efficient approach (free).
Thank You !
If you have the coordinates of all the places you want to search from in database, then you can implement Haversine formula in sql query and this will return results within the specified distance as in your case 2km.Refer to this link for detailed information.
I need to pass user's GPS coordinates from the iOS app to the backend server. The iOS Location Services uses EPSG:4326 (also known as WGS 84) but the back end expect them in EPSG:900193
Does anyone have any information on how to transform the lat/long values to EPSG:900193 in the iOS app before sending them out?
My google fu is failing me. Searches didn't come up with anything I could use. Is there are formula, or a library that I can use?
EPSG:900193 is also know as Web Mercator, which was originally called Spherical Mercator
Wikipedia has a formula for conversion to Web Mercator
The Google Maps / Bing Maps Spherical Mercator Projection has additional information, and as does Conversion of British National Grid (WKID:27700) to WGS84(WKID:4326) and then to Web Mercator (WKID:3857)
The links will get you going, the last link has a javascript for conversion, which may, or may not suit your requirements.
Edit: Doing some light reading I found this interesting Java code for WGS84 to Google map position and back and this gem http://spatialreference.org/ref/sr-org/google-projection/
The biggest problem with all of the name changes...are they talking about the same thing?
I recommend you look at the PROJ.4 Cartographic Projections library and its translations to many languages/platforms. For your particular case you may want to look at the Changing Ellipsoid / Why can't I convert from WGS84 to Google Earth / Virtual Globe Mercator? FAQ
Found this site, http://www.batchgeo.com/ , but seems to require addresses.
I just have a long list of lat/long coordinates and would like to visualize on a map.
All mapping APIs (Google Maps, Bing Maps, etc.) allow direct positioning of markers on their maps by lat/lon. For example:
http://www.bing.com/maps/default.aspx?sp=point.47.68_-122.12_MyMarker&lvl=10
You could always use Reverse Geocoding to find the corresponding addresses for the coordinates.
I was doing a map ios app using CLLocation and I was wondering whether there is an API for judging whether a point on the map is on the road, but not in an appartment or in anywhere in-side the house?
I have seen there are certain navigation application who can keep the points on the road.
https://github.com/route-me/route-me
Have a look there are so many example in this code you will an google api which provides us the route path latitude and longitutude and we draw a over lay on the map.
Hope this will help you.
Is there a Bing API for finding nearby cities given a city name or lat/long combination?
I don't know if Bing provides this, but you build your own from the data available from geonames.org
They provide an API to get places near a given lat/lng: http://api.geonames.org/findNearby?lat=47.3&lng=9&username=demo
Or you can also go all out and implement a solution for your own needs using their data, as per this answer: Given the lat/long coordinates, how can we find out the city/country?
I think this is what you're looking for: Bing Maps API Sample
The short answer is no, there is no Bing API for finding nearby cities.
That said, it would be possible to 'cook your own' using the existing APIs. However, one thing that would need clarification is what 'nearby' means. I presume you mean within a specific radius of a given point (determined by a city name or lat/long combination).
Using the Bing Api it would be fairly trivial to implement an algorithm to reverse geocode a location and then test for places within x distance.
Failing that, you could use something like geoPlugin, it is free and you can put it on your sever - thus avoiding 3rd party up-time issues.
http://www.geoplugin.com/webservices/php#php_class
Take a look at the nearby places features, this does exactly what you want.
http://www.geoplugin.com/webservices/extras
No, there isn't. However, it's relatively simple to get the bounding box for a given coordinate and then use the Bing Maps API with that. I'm doing this and used this solution to get what I needed...
https://stackoverflow.com/a/14314146/73680