I want to get the default search functionality available in google maps on my android project.For example if i search "doctors in india" Gmaps will show many points, how can i get this work without using Itemized Overlay or by using some json request.Can somebody please suggest me an idea.
You could use Google Places API to get a JSON for your query.
If you are looking to avoid using any library or API (because you have to register to get the API key) you could just use a webview and put a maps.google url.
for example:
https://maps.google.com/?q=New+York&z=13&t=m&output=embed
or
https://maps.google.com/?q=near:doctors+in+india&z=13&t=m&output=embed
You will find that the parameters here are not documented ,Here is a link i found useful for the parameters.
Related
I am trying to get a list of places of a certain type like restaurants, nearby a certain latlng. I looked into the Google Places SDK for android but I couldn't find anything for this use case. It has the autocomplete and current place search but nothing for searching a certain type of places for a reference location. The Places web API has this feature but I was wondering if it would be possible to achieve the same with the Android SDK for Places. Something like below. It's an example from the Places API
https://maps.googleapis.com/maps/api/place/findplacefromtext/output?parameters
Try to use google places Api
https://developers.google.com/places/web-service/search
Try to implement the below api with proper modification with your Your_API_KEY
Change Params: radius , type, location
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=1500&type=restaurant&keyword=cruise&key=Your_API_KEY
I tried hard to find the way to search places by setting query parameter along with type inGeoDataClient.getAutocompletePredictions()api.
But i could not find any way to find exact places with type or name as supplied query.
if i pass 'airport' it gives so many result like places having 'airport' in description or name.
I just need airports nearby from this api, Guys please help, only option till now is to use web services. But as an android developer i want to use android api.
Thanks in advance.
I am trying to include an address search inside my application developed in Eclipse using SKMaps (for Android). I believe I should be using the SKSearchManager but it does not specify any method that accepts SKAddressSearchSettings as an argument.
In the documentation it says that SKMultiSearchSettings can be used to search for a Country > City > Street but in does not have the required setter methods. The only one there is setSearchTerm() which does not seem to do the job.
Is this a genuine problem or is there some other way around it?
For the search to work you need to have the maps downloaded as the search only work with the "offline" maps: http://developer.skobbler.com/getting-started/android#sec019
This should also be the behaviour of the demo projects (http://developer.skobbler.com/support#download)
Once you download the map you should start getting back results. Note: you'll be searching through OSM data and that's (unfortunately) not the best when it comes to addressability)
To use google places API in our Android application, a key is needed. I have got a key now. But I don't know about how do i use it in my application and how to do search for a specific place. Also, please can anyone explain about what are the prerequisites for using Places API in my application. I have searched manything. But I didn't understood that.
1) Can anyone explain please with complete code.
2) Also, explain how do I search for a place by using latitude and longitude values in Place API
Please refer my answer on Google Places Api
Pass Your location to search and your api key in url and my code also shows how to find nearest place.
Thanks
I want to develop an application in which i want to display restaurants nearby the user.
Say for example i want to display name and address of restaurants located within 3km related to current location of the android device..
I have done alot of reading online and found different links here on stackoverflow.com
I am aware that I must use the GOOGLE PLACES API, I found this link to this blog on this site Introducing the Google Places API
My problem is how to use android/Java to:
1. Send a request to this url : "https://maps.googleapis.com/maps/api/place/search/json?location=-33.8670522,151.1957362&radius=500&types=food&name=harbour&sensor=false&key=MYAPIKEY"
2. Then parse the XML or JSON results from this request and display them in a list for the user to see.
Thank you in advance for anyone that can help.
You may want to look at some online tutorials like for instance
http://blog.brianbuikema.com/2010/08/android-development-part-1-using-googles-places-api-to-develop-compelling-location-based-mobile-applications/