user1930106
user1930106

Reputation: 789

How to add search button on Android Google maps ?

I want to put the search button in google maps in Android application (like the way I added zoom controls). However, I am not able to find a way to add it.

Upvotes: 3

Views: 1180

Answers (2)

Silverstorm
Silverstorm

Reputation: 15835

If you want to add a search button, you have to implement a the Reverse Geocoding, using a GeoCoder that receives your searched Strings from a EditText so with the coordinates obtained you can set a geopoint in the MapOverlay to show the searched position on the map.

For more info about Google Maps geocoding see: https://developers.google.com/maps/documentation/geocoding/

Upvotes: 1

Joe Malin
Joe Malin

Reputation: 8641

This question is too vague. What "search button" are you talking about? Do you mean a SearchView? There's a search widget in the maps.google.com web interface, but that's not the standard Android design. The Android Google Maps app uses a SearchView with history and autocomplete.

Upvotes: 0

Related Questions