I am working on an Android application in which I need to achieve the following goals.
Get the current position(co-ordinates) of the device - Done
Search within a given radius centering the device position for the nearest bus stations and List them.
I need help on the second thing. Is there any way to get the Nearest bus stations from the Google Map inside an android application? Can I use Google Places API to achieve this?(the official page says that it's still experimental). If yes, how?
Thanks.
I could successfully achieve these by referring Davy's Tech Blog Article and the code sample provided in Github
Thanks for your help.
Do a reverse geocoding on your coordinates:
https://developers.google.com/maps/documentation/geocoding/#ReverseGeocoding
then do a search like this:
https://maps.google.com/maps?q=transit stop near the_address_obtain_with_reverse_geocoding&output=json
Related
I want to create an android app like nearby places (Shops,travelling places, Restaurants, etc). How to get the basics of Place API for android? Can someone give me any recommendations or ideas?
App Feathers -
When user opened my app, It's should be show to the user whats near to his place whatever he go.
Any Recommendations?
Google places Nearby Search lets you search for places within a specified area. You can refine your search request by supplying keywords or specifying the type of place you are searching for.
More details : https://developers.google.com/places/web-service/intro
You can use below API:
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=1500&type=restaurant&keyword=cruise&key=YOUR_API_KEY
First read and implement Maps SDK for Android
and then basically you need coordinates of the places that you want to show user and the location of user. Good luck!
Is it possible to display in house map using MapBox in Android?
For example : I am in one mall and I want to know that what are the directions of particular shop in one mall or I want to know that how many shops of cloths are there in one mall using MapBox?
All your answers and suggestions are valuable and appreciable for me.
Looking forward to your reply.
I am using MapBox Android SDK : https://www.mapbox.com/help/first-steps-android-sdk/
Just to clarify, you are trying to create an indoor map using the Mapbox Android SDK correct? If that is the case, you can follow this guide to tracing the indoor map you have and create a tile set. You then can use it within your Android app by following this example.
Hope this helps
Very sort answer is yes it is possible,
For inhouse may you have to create custom geographical area image for particular mall and its floor
Here is some reference for your idea video for concept here is one concept of showing indoor image either by web service or you can also
Create your own drawable image for indoor map
I would like to use the Places API to find the geocoordinates of the nearest bars using Google Places. I'd like to store around 15 of the nearest geocoordinates in an ArrayList. Does there exist a simple demo of how to accomplish this? More generally, I would like to see a quick and dirty concrete working example of how to use the Places API to query for locations.
This link will help you. https://developers.google.com/places/#PlaceSearches you can get all nearest locations using the goole api.
I am a student working on an android application related to navigation trying to learn android programming. The application needs to search the geo-locations (latitude,longitude) among the ones available and find out which ones fall along the route the user is travelling.
For example, if the user is travelling from 37.422,-122.084058 to 37.422,-122.084058, then I should be able to search the points that fall along this route from the set of points that I have. How do I do that?
I am getting the route direction of the user from the google api
https://maps.googleapis.com/maps/api/directions/json?origin=Googleplex&destination=infinityloop=&key=your_api_key
I get the route in the form of legs and I have a set of geo-locations. I would like to find which geo-locations fall along the route of the user. Is there any way I can find it or any API that I can use ?
Any help is greatly appreciated. Thanks in advance :)
There's already a lib for this: use isLocationOnPath with the polyline you are getting from directions api response.
Build a LatLngBound using the two points and pass in the geolocation point you want to check into LatLngBounds.contain().
I am using following example source code but I can't get long distance route in map. It only works for small distance on map.
Is there are any limitation to access map?
If some one has better idea please help.
Here is a complete source code at https://github.com/frogermcs/RoutePathExample for how to draw path between two geolocation. I use this code without any trouble at all. You should check it
Make use of this secret Google API and Android Map API to show the distance between two points.
I am using this code and it is working fine, even if I put two points in two different countries. I believe you are not implementing it in the right way, because this code is retrieving the KML provided by Google for the two points you choose, which always returns a route unless the two points are in different continents and there is no route for going by car.
I suggest you show us how did you use the code in your app.