Implementing search in GoogleMaps Android API, with zoom - android

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

Related

Location picker for android and return lat and lon

Is there any other way to get a city picker in the android studio apart from google maps API?
I need to get autocomplete option to choose the city and return the coordinates of that city.
With my basic research google maps api seems to be the fulfilling this requirement but I am looking for some resource apart from google maps api as they are quite expensive for this kind of project I am working on.

Android - Google Maps API v2 - get altitude of location

I am using Google Maps API v2 in my Android application, and I would like to know how could I get an elevation details of a specific route, e.g for a 10km route ahead. I'd like to update this graph on every location change.
I know I can get it like THIS. This however is not possible for me. I have the map area downloaded for an offline use. I just want the API to give me the elevation data from those, without connecting to the internet.

Search Google Place API for places within LatLngBounds on Android

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

Android Google maps API

I`m creating app with GPS map. Before I start understanding how to use the API in my app I have some questions.
Can I overlay an image on the map, without that the user knowing I use Google maps API?
Can I cut and use only specific area of the map and limit user to that map, lets say show only some amusement park and show the user location, and user cant go outside my map?
I need to show on an image the location of user, without navigation, should I use Google maps API or different approach?
From the looks of it you want the Google Static Maps API.
https://developers.google.com/maps/documentation/staticmaps/
This will generate an image of a map when you give it the latitude, longitude etc. You can then use this in an ImageView.
The advantage is that you don't have to create an expensive MapView, but it will not be interactive

Android Google maps co-ordinates

I have an app which stores co-ordinates. I am using Google maps to show the location to allow full use of the maps app. I am using the intent call and placing the co-ordinates in the q=xxxxxxxxx,xxxxxxxxx part.
This works, however when Google maps shows the location it often finds a point on the road, sometimes a little distance from the actual co-ordinates.
Is there a way to get maps to show the actual point?
http://maps.google.com/maps?q=(#24.397611,120.780512)
from
http://mapki.com/wiki/Google_Map_Parameters

Categories

Resources