I am building an Android application that lets users find restaurants in a specific area (LatLngBounds). I want to do a Google Place search for restaurants that are located inside this LatLngBounds and not outside of it.
I understand that there is a way to do this with the Google Maps JavaScript API V3, however, is there a way to do a Google Place search using LatLngBounds as the location parameter on Android? Thank you
After some thorough researching, I've realized that there is no easy way to search the Google Place API within a bounds area (LatLngBounds) unless I use the Google Maps JavaScript API V3.
However, there is an alternative solution, which is to use the Yelp API. The Yelp API lets developers specify a "bounding box...defined by a southwest latitude/longitude and a northeast latitude/longitude geographic coordinate."
Here is a link for more information:
http://www.yelp.com/developers/documentation/v2/search_api
This is late to the party but it seems like with the newer Google Services you can set LatLngBounds for your Places search:
Here is the API
Here is the Example
Related
I have a Google map on my application which at the moment shows services on the map like rail station and church etc. However unlike Google Maps (the official one), my one does not show commercial places in the area like McDonalds, Boots, Subway and Starbucks etc. etc.
I tried to research if this is something I must set on my map but could not find anything, can anyone tell me how to show commercial places on the map
Many thanks for reading
Use Places API to show Points of interest
To use Place API in Android, you can read it here
I am fairly new to Google APIs.
My business purpose is to get a list of hotels in my area.
From the Google API list, I figured that either Google Map Engine API or Google Places API would be ideal.
Google MAP Engine API - was chosen because in the documentation it said that we can access public data.
Google Places API - was chosen because in the documentation it said that we can access places in a locality.
Could anyone help on whether I have chosen the right API? And can my business purpose be achieved using Google APIs?
As far as i know google api v3
if you need to make a web based applicaton to do anything with google map you first need to include javascript api v3.
other apis/libraries sit on top of that
like : Places library (or you say api) , drawing library , overlays , weather etc
https://developers.google.com/maps/documentation/javascript/reference
if you scroll down a bit on contents you will see all the extra libraries there (including the place library which you need) As google says: "The Places API is integrated into the Google Maps JavaScript API as a JavaScript library."
so JUST inlude google javascritp api v3 and you get everything.
https://developers.google.com/maps/documentation/javascript/examples/place-search
use example above and change the type from ['store'] to ['lodging'] to get all the hotels near the lat,lon specified.
I am using google maps v2 application on my Android. I wonder if there is a way to just show the map of a specific country, say France.
What I have tried
I tried to use LatLngBounds and then calculate the new LatLngBounds but this is for preventing the camera to go out of the country and it is kind coast solution.
As of the current Google Maps API, there is no such feature.
LatLngBounds is the best bet as far as I know.
I am trying to implement searching GoogleMaps in Android app, and found solution in:
geoCoder.getFromLocationName("New York", 5);
which returns a List<Address>.
The problem I have is that Address object contains information about longitude and latitude, which is great, but not zoom level info one gets when searching Google Maps. For example: if the search is for a country, Google maps sets zoom level to show the whole country, unlike searching for an address with street number which will display much higher zoom level. JS has it. How about Android?
How can I get zoom information when searching GoogleMap API (v1) in Android? Tnx!
Use Google Maps geocode API.
Example request: http://maps.google.com/maps/api/geocode/json?address=New%20York&sensor=false
I have an location coordinates. I have a radius (5 km, for example) around this location. How to get google maps photos (images, description/comments for photo, coordinates)?
You should use google maps api (notice there's a new google maps v2 for android you can download here
As for getting specific coordinate data, you should consider google places api.
you can use this great detailed tutorial, and a tutorial which I believe most fits your needs, combining the two: link
You need to use the Google Places API. There are queries for photos, reviews, etc. Note that this is a separate API from Google Maps.