Sharing location on google Maps - android

I'm new to android Location API and Maps. I was thinking about making an application which can be used to share location of friends and locate them on Google Maps. There are many kinds of apps which exists in the market like Find My Friends by Apple FindMyFriends
The only way which I thought to spot my friends on google maps was to create a database, put their profile information (like name,phone,email-id) and retrieve it back. Is there any other way which is much better than the way I proposed?
Thanks

I had worked on similar projects. I hope my brief info would be helpful to you. You certainly do have to create database and it should be on the server which is accesed by API.
For server part what you need is an REST API which can be created on php , jsp or other. Api handles the request and response data using json(may be other too).
In android its better to use google map api v2 , and use LocationManager or LocationClient classes for getting current location in longitude and latitude format and update it to database by sending request to Api.

Related

Android get Travels Companies List from APIs(Google API or Any)

Hello All, I am new in Android Development,
My requirement is getting Travels Company List from current Location[please find the Image]
am able to get current Location and showing Map in Android App Home page.
Is there any other party API or Google API will give current Locations Travels List
Please help me on this,[please update Google API if available]
thanks in Advance.
You can use a Places API nearby search to get a list of travel agencies. You should execute HTTP request like
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=25.597295%2C85.118716&radius=2000&type=travel_agency&key=YOUR_API_KEY
and parse response in your Android app.
To get more details about Places API searches please refer to the documentation:
https://developers.google.com/places/web-service/search
Hope it helps!

Google maps sharing location

I want to make a android app using google maps.In this app I want to share my location to my friend like a request, Once he accepted my request he will get the route map to my location (previously I shared) and also I want to see his moving path towards my location. Can any one please suggest me how is possible to sharing locations.
I think the best way to control that sharing is using socket.IO
on the device you catch your position then emit your position to the server and on the server side you emit to other devices.
Hope helped you
For sharing locations and showing it on map, you need to do it in following steps
Read your location using android APIs.
Once he accepts your request, read his location and share it to your profile through some API to server & keep on updating location on every changed distance delta or at some time interval and share that too.
Now you have co ordinates of both locations. Use them to fill data to Google Maps API and load map in one of your activity. Whenever you will receive updated location of your friend from your server, update the map and draw path between them using google maps api.
For showing map to your location # your friends side, same thing needs to be done. If your location will also change then you will have to provide your updated location to server timely as mentioned in step 2
What if you send a geo: link to your friend? Like geo:62.0,-7.0 ? That should give the receiver a choice between all his geo-capable apps. Google Maps, OsmAnd, maybe some weather service...

Android Application - Getting points of interest from a certain location using Google Places API for Android

I'm coding an Android application and I'm trying to get and display a list of touristic attractions from a certain city using Google Places API for Android (i.e. Central Park, Times Square...). However I've been checking the docs from here: https://developers.google.com/places/android-api/signup and I haven't found anything similar for Android.
On the other hand, the Google API for web services: https://developers.google.com/places/web-service/intro does have that functionality I'm looking for but Google says strictly not to use this API in an Android app.
I wanted to know if is possible to use this web services API in an Android app, and what other alternatives are there for such functionality I want to implement.
Try this google places API url. You will get the point of interest/Attraction/Tourists places in (For Eg:) New York City. You have to use the CITY NAME with the keyword Point Of Interest
https://maps.googleapis.com/maps/api/place/textsearch/json?query=new+york+city+point+of+interest&language=en&key=API_KEY
These result have all the details of a place like categorization (Museum, Landmark, ...) a picture, a two - three line summary about it and rating.
more details

I want to get weather update in android

What i have: currently my app is telling me my current location (coordinates + name).
What i want: To get the weather update of my current location. and i want to update whenever my location is changed.
i have tried a tutorial but that was too much complex for me.
To my knowledge you need a server support for the same.
I saw the tutorial, which parses the HTML page in "Beginning Android".
If you want that to be in specified format, then you need server support. Try searching for free server providers.
Use google weather API, you will get a XML response
Replace the city-name placeholder with the city detected
http://www.google.co.uk/ig/api?weather=
I have created a sample project with my own Yahoo weather api wrapper.
You can find it here.
https://github.com/zh-wang/YWeatherGetter4a
Try Metwit weather API.
It's simply to use, what do you need is only a lat, lng and a GET request.
If you can implement them client-side: 200 request/day (ip based throttling) no authentication required. Worldwide coverage, JSON and REST compliant.
Here the documentation of the weather resource.
Disclamer: I own this API.

Want near by location information within 1KM range

I am working on a application which gives me all near by places within 1km range from my current location. I am able to get longitude and latitute of the current location using LocationManager class in android. Using this information i want to get information (i.e. long/lati) of the nearby places. I have seen some of the webservices alos but couldn't get the answer. Please help me.
There is a Places API Application Form that you'll need to fill in in order to get access to the Google Places API. This application will be verified by Google and they'll provide you with the necessary access.
You'll also need a Google Adsense Publisher ID (
More info on the Places API can be found here :
http://code.google.com/apis/maps/documentation/places/

Categories

Resources