How to make an android app which determines location and finds nearest - android

I am creating an app for android which will be used by gym members. I need to find a tutorial or any other material which may help me to give the user an option to "find nearest gym". This will determine the location of the user and display their closest gym options to their location.
Thanks in advance!

The Google Places API has a gym category:
http://code.google.com/apis/maps/documentation/places/supported_types.html
A tutorial for using the API is here:
http://blog.brianbuikema.com/2010/08/android-development-part-1-using-googles-places-api-to-develop-compelling-location-based-mobile-applications/

Related

How to create an nearby places android app using Google Place API?

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!

How to retrieve Google Directions GPS data from real device

I'm trying to make an application based on Google Directions (Maps) API. Basically, I'll develop a mobile app which will tell users where to navigate with their cars and I'll monitor the actual trip (route followed, time, speed etc). Then, I'll need to process the data retrieved in order to display it on a web platform and compute some statistics.
My questions is, which API should I use and how? I've actually searched about this topic but I couldn't find something useful (like a tutorial) regarding this subject, given the fact that I'm new in this domain and I don't know how to begin and what to do.
Thus, I would really appreciate if you can give me some steps that I must follow in order to accomplish this. Also, all types of materials (tutorials, documentations, articles and anything regarding that subject and tips for really beginners) would be very, very helpful for me!
Refer the following link for directions API documentation.
https://developers.google.com/maps/documentation/directions/intro
You can refer the following link for parsing directions.
https://github.com/jd-alexander/Google-Directions-Android
On Location Listener,listen continuosly your current location and store in a list and after the trip is completed,You can use that list that which path that the user as travelled and do your algorithm according to your requirement.

Implementing location based application android

I am trying to make a android app where I want to show the location of user and the places to visit around that location. Let's say for example I am around certain location and I want to discover popular places around me, so how should I start I have no idea where to begin with ? any help will be appreciated.
Thanks.
You can use Foursquare API to get popular places info based on User location. http://developer.android.com/training/location/index.html
To get User Location , you should read android official document. http://developer.android.com/training/location/index.html

How to find if a geo-location is on a road between two points?

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().

Getting nearest bus stations from Google Map inside Android Application

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

Categories

Resources