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.
Related
I have researched a lot on google maps android to dynamically plot the route as the person travels. I found that polyline gives a closed polygon with multiple points on it, which does not look good. So what is the best method to plot the exact route as traveled by a person as per the latitude and longitude.
You will have to use the Google Maps Directions API to build your route map.
https://developers.google.com/maps/documentation/directions/intro. Also refer to the detailed SO answer which may help you understand its implementation.
Answer : Draw path between two points using Google Maps Android API v2.
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
I have a problem: I need to calculate the routing within a mall that has a plan registered in google maps, but with the direction API can not get the indoor routing. To be precise if I am away from the mall and I want to calculate the route to an internal area, I am guided to the outside of the mall, while I would like my app would calculate a route for the section inside the building . To do this I currently use the Google Maps Android API v2 and the Direction api with json output. Does anyone have any suggestions for me? sorry for my bad English
I have exactly the same problem; compting a route (with mode=walking) between two points that are both inside a mall gives a path that starts, goes and ends out of the building.
The closest similar path found on Google Maps (HTML version, from a browser) is the "bike" one...
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.