does anyone have an idea on how to open a google map screen where the user can search for his address and at validation the screen get closed and the city + country of selected address get filled on a Textfield, please?
For implementing "Google Places Autocomplete" for a simple Textfield, you can start from this package.
Related
From Play Text Delegated function I am getting text to speak when where plat text triggered from Here maps, But I want to call Play-text on my own so I need to text speak.Can we get this list before navigation?
Please find image for better understanding.
Route With Directions
There is no such API in mSDK. But all needed information exists (in the class Maneuver - type of maneuver, direction, street name). You can obtain the list of maneuvers and generate needed text.
I want to show food stores as per user street for example if user is in street name called ABC then map will show only those marker which is around in street ABC
if (userlocation == "isInStreet1") {
thencallThisfunction();
}
else if (userlocation == "isInStreet2") {
Toast.makeText(getActivity(), "There is no food store around you", }
but i don't have any idea how to do this ... i can able to get current location of the user but i am not getting how to show nearby object as per their location
Have you considered using the GPS to get your coordinates and then using them to get the address info including the street name. Once you have that infomration you can compare the strings to the list of street names you have.
See the accepted solution from this question: Android - How to get street name from coordinates?
It seems like you'd want to use the Google Places API.
In particular the Places 'search' function which allows you to find places near a specified Latitude/Longitude
In my app,getting address from user,after user enter the area name how to display the pin code/postal code automatically in edit text field.using map any one know please share with me.
I am getting a latitude and longitude from GPS and want to search the nearest city from my current location.
Currently I'm sending a request to Google Places with types like "neighborhood|locality", but this does not return any nearest city. Even if I only specify "neighborhood" or "locality" by themselves, I still get no results. However if I use a type like "bar" then it returns a list of bars.
I'm using the types listed here:
https://developers.google.com/places/documentation/supported_types
Can anybody tell me what Place Type I should use to get the nearest city or places, or how I can otherwise get the nearest city?
Are you getting back a results array with nothing in it, or simply getting nothing back? The docs say you'll get a results array "even if the service returns no results". Is it possible that the city you're searching contains bars but does not contain anything classified as a "neighborhood" or a "locality"?
This question says
you can restrict the results that will come back in the Autocomplete
to addresses by setting types to 'geocode' ... you can restrict the
results that come back in the Autocomplete to cities by setting types
to 'cities'
If you're just trying to get the city name, rather than searching for something inside the city, perhaps you want to use one of those options?
I am developping a weather android application which displays the temperature of each city of a given country on a Map. So, I would like to use "Map image" but I have not clear idea: how I can locate the cities of this country on this "Map image", generate an event when a click on a city ...
Can someone help me please? Thanks
Use Google Map to achieve it. follow this. Its clearly explained.