I've been wondering, what list does facebook places use? Is it foursquare's one?
And if so, how does it work? Can I connect to foursquare's API and get nearby places with coordinates or something like that?
Thanks a lot!
Here is simple way to find out places near by given LAT and LONG as well as with specific word like-- Hotel,Bar etc:
http://maps.google.com/maps?f=q&sll=LATANDLONG&radius=500&q=SEARCHWORD&output=kml
It returns KML file ,and user can parse just like XML parsing.
Here's a link to FourSquare's documentation. Scroll down and look for "Venue methods." You supply the API the users longitude and latitude and Foursquare will return a list of nearby places.
http://groups.google.com/group/foursquare-api/web/api-documentation?pli=1
Also, here's a link to some sample code on how to implement the Foursquare API into your iOS app.
https://github.com/anka/bw_examples/tree/master/FoursquareIntegration
I believe facebook and the like foursquare built up their places mostly by user input.
In other words they might have started by buying a commercial dataset in a particular location. That's the seed data. Thereafter, users can add more places as they go. This way their database grew and now they have their own proprietary data about places.
If you go to either apps, you can search for a place, and if not found you get the option to add that place with address, category etc.
I am curious to know if Facebook uses any third party API for its Places feature.
For how it works, you can use Facebook Graph API which provides search.
Related
I am creating a chatbot using messenger in python but I don't know how to get the geolocation from the facebook user (latitude, longitude). I saw that I had to use graph API but the field status does not seem to work. Would you have a query example? Thanks in advance!
[Update with the current status about how to solve this]
Location Quick reply have been deprecated and removed since end of june 2019.
They're supposed to announce a new way of achieving the same behavior but nothing so far 6 months later.
Facebook recommends asking for user's address in a textual form.
This means that if you use an API consumming GPS coordinates you now must use an address to GPS conversion service.
You could think that using a webview with a "get geolocation" button would do the trick but this feature is blocked on all desktop browsers. If the iframe content isn't on the same domain you cannot get geolocation data. Still it works on mobile (as it's not just a simple iframe but a full webview).
Basically, at the time of this writting, you have no much way to achieve the same as the "get position" quick reply behavior.
The only solution is to ask the user's address in a textual way and convert it to GPS coordinates (if you need them).
You can use the location quick reply:
https://developers.facebook.com/docs/messenger-platform/send-messages/quick-replies#location
I am new to this. I am looking for a way to search user in specific location but it turn out the results come from no where.
I have tried this
/search?q=micheal&type=user&location=New+York
But the results shows people from like India. I wonder why it becomes like that. Each time I refreshing the link it shows the same set of data.
I am using php sdk with app version 2.8.
Please help me. Thanks in advance.
There is no way to search for users by location, you can only search for users by name. That is why people from India show up too. Check out the docs, there is no mention of using the location parameter with the user search, especially not with a location name. Location search is only possible for Places, with latitude/longitude.
I want to use the Nokia Ovi map in my iPhone application. Is it possible? If so, please help me to find a link to some API documentation and steps for integration.
Nokia Ovi Maps run on any HTML5 compatible browser, thus you can embed it in your application with UIWebView (see the documentation of this class on how to do it). According to Nokia you can do the followings:
You can see where you are on the map, thanks to HTML5 support for
positioning
You can find addresses, businesses and other places of interest, anywhere in the world
You can get to know the places: all the essential information about a place are presented on one page (pictures, user reviews, popular travel guides description, contact information)
You can plan the fastest route to your destination by car or on foot
You can see where the public transport lines go, and where the stops are
You can share your favourite places with your friends via SMS, email, Facebook or Twitter
Found here: http://blog.maps.nokia.com/archive/nokia-maps-goes-to-ios-and-android
Im using google map api and im being limited to 8 searches everytime im searching for a business place and its not very accurate( meaning that there is a nearby mcdonalds that did not appear on the search). Does anyone know of any good tutorials on how to increase the amount of results nd how is it possible to set the results so that they appear automatically providing a list of the names of all nearby business within a radius kind of like foursquare or facebook places?
It sounds like you are either using the deprecated Google Local Search API, or the GoogleBar for Maps API v2. If you switch to Maps API v3 you can use the new Places library, which will return 20 results per query in JSON format so that you can render them on and alongside the map as you please:
http://code.google.com/apis/maps/documentation/javascript/places.html
Many thanks,
Thor.
I am trying to emulate the Maps 'Share Location' via email functionality.
I have the latitude and longitude of my location and am currently using it to display the location on a map via MKMapView.
I also have functionality that composes an email from the app and I would like to include the location in it but can not figure out how to construct a link, using the longitude and latitude.
I have seen other apps with apps with this functionality so I know it is possible.
Any help would be much appreciated.
Thanks in advance.
UPDATE:
The link should open Google Maps.
Where should it link to? Your app or Google Maps? For the latter, check out the Apple URL Scheme Reference. For the former, you have to construct your own URL scheme and then create a string that matches your scheme.