How to show suggestion list on google map search? - android

I want to show suggestion list same as google maps application.
I found some api on google developer site but they dont return same result as google maps application.
https://developers.google.com/places/documentation/search#PlaceSearchRequests
check this screen shot for more.
Its finding using current location, my location is jaipur,rajasthan,india.

You need to use third party library API for this. FourSuqare provides the most efficient and largest database of location based API for this. IT uses type ahead. I would recommend to use their iOS SDK or Android SDK.
The also offer REST web services. Here is a complete documentation for the same.
What you are looking for is this API

You can use a handy library that utilizes the Google Places autocomplete API ... or you can "inspire" from here... https://github.com/chenyuan/SPGooglePlacesAutocomplete
The result:

Related

which api to use for an app providing list of nearby hospitals with available treatment types?

I am building an android app which can suggest a list of hospitals/clinics/doctors who specialize in specific division of medicine.
For e.g If a person searches for orthopedics, the app should list all nearby hospitals which specialize in orthopedics.
I am new to android development and have never used any api like the Google Map API or the Google Places API. I read that other vendors like yelp etc. don't have enough information about such services.
Can someone help me decide which API I should be using here?
Also, when do we use google map api vs a google places api ?
Links to tutorials explaining how to use these apis would also be very helpful.
Thanks in advance.
I would suggest using either the Google Places API like you have mentioned or the yelp API:
https://developers.google.com/places/android-api/start
https://www.yelp.com/developers/documentation/v2/search_api
I, have personally used the yelp API for a personal project of mine and it pretty much does what I want it to. Please look at the documentation in both the links above and see what fits your application the best (both should work based on the description you provided). Hope this helps!

How to Make LBS applications in Android

Anyone has a tutorial of making LBS applications like this? I want to make an application to determine the trajectory of the city's public transport me, but I did not find his examples everywhere, if you have please help me to develop it, thank you
It is a concept design of my application layout
To develop an android app which uses Google API's would be a combination of Google Maps API, Location Api, Direction API and also Places API(if you want to fetch the details of your source and destination). If you are developing this app for a special transit system in your city than you would specifically need their own set of API to populate your app data.
But if you want to develop something with free open source Google API you can first make use of the Google Play Services by first referring into your app project and then getting the API key, enabling the direction api "ON" in your developer console and writing code.
Please refer to this tutorial in order to get a better insight of the transit system app you want to develop. You can customize you app UI accordingly once you have the data coming in.
Here are the bunch of links from Google's official documentation regarding implementation of all API's.
https://developers.google.com/maps/documentation/android/
https://developers.google.com/maps/documentation/directions/
https://developers.google.com/places/documentation/
Hope this would help!!

Are there no existing Java classes for Google place autocomplete and maps directions?

I'm thinking of writing an app that make use of the places autocomplete and maps directions, but find it really odd that the Google docs for its only provides a rest api.
Am I having a brain fact, or are there truly no Places Autocomplete text fields provided via the SDK? and similarly for maps directions?
no brain fart. that's just how it is.
there is, however, a github project that's supposed to handle the rest api calls for you. haven't used it, so not sure if its any good.
The Web Services APIs can now be used in Java with this native client library: https://github.com/googlemaps/google-maps-services-java
No Places API unfortunately but the Directions API is in there.

Google Maps Coordinate android

I want to use google map coordinate in my android application.
http://www.google.com/intl/en/enterprise/mapsearth/products/coordinate.html?utm_source=google&utm_medium=cpc&utm_campaign=NA-LCS-2013-Geo-Products-MapsCoordinate-HouseAds&utm_term=%2Bgoogle%20%2Bcoordinate&utm_content=SearchAd&gclid=COy759vU2LsCFVMdtAodNGYAdg
I found this example on google play: https://play.google.com/store/apps/details?id=com.google.android.apps.geo.enterprise.flak
I searched on internet but didn't find documentation about how to implement google coordinate in my anndoid app.
Did any one used this before? If yes can you please put links of tutorial or links of samples?
Try this link, to the Google Maps Coordinate API Client Library for Java.
Otherwise, if you want to start from scratch, it's a RESTful api. There are a number of clients and libraries that you could use, including Volley. Also, here is a tutorial for making remote calls.
You can find everything you need here.
I have done it following this official tutorial recently. The version 2 of Google Maps Android API is different from version 1 in many points.

Android - Get Place Name through Lat and Long values

I need to check if there is any place (e.g. coffe, bar, business center, etc.) registered at a specific Lat&Long values or nearby and get the name of those places. Does anyone know how can I do such a thing in Android?
Tks in advance,
Regards
There are some possible libraries/services you could use to get geolocation support for your app. I only tried out gisgraphy.
The Google Maps Geolocation API - uses Google services.
gisgraphy - uses open streetmap, free to use if "personnal,non commercial and non profit one AND in a smart way". You can set up your own gisgraphy server if you want for free. Provides a REST API or a java library to use in your project.
Overpass API - an read-only API for openstreetmap servers. You could also set up your own server or use one of the services in the osm wiki if it fits your needs
You may try the Google Places API.

Categories

Resources