I've built application which receives coordinates from a patients device every time a text is sent from the carers requesting an update. I'm now looking into my options for mapping the coordinates received from the patients as well as the location of the carers device so they can both be seen relative to each other. Aside from having Google maps built in to my application is there any other recommended options.
thanks
OpenStreetMap is an alternative. You can start here.
Related
I am going to implement functionality to input current location (with out using GPS) for particular path. Following are the two options.
Since I know the path I can either predefined all the inter mediate location from start to end. So user can select valid location for the particular path. Since it is predefined. But since this is hard coded it is bit overhead to maintain.
Use google place API. But there I can not restrict user to input specific locations between start and end. User can select invalid location which is not relevant.
What is the better approach I have to follow by overcoming the limitations?
I want to develop an app that reads the accelerometric values(of the phone's accelerometer) and on passing a certain threshold value of accelerometer, it should send a message with the phones position in Google Maps co-ordinates.
Is this project technically feasible?
I can develop an app that reads accelerometer values but how to design it in such a way that sends a message of the phone's co-ordinates in Google Maps?
Your question is too broad to supply code for it, that you will have to do yourself, but here are the steps you will need to implement.
Set up a google maps activity/fragment. This is explained in detail on the google developer docs.
Receive an event when accelerometer value's are updated.
Based on the accelerometer values, determine whether or not threshold is passed. If yes proceed with 4&5, if not, exit and wait for new accelerometer readings.
Get a Location(lat/long) from the FusedLocationApi. This is explained in detail on the google developer docs.
Place a marker on the map with that Location. If there was already a marker from a previous reading, remove that one before adding the new one.
I would like to find an API that allows me to pull a client's current location. I know Google Places and FourSquare have API's available. Basically, I want it to run at all times, as I am eventually going to create a dating app that allows you to see who is at a current bar/restaurant/social setting at any given time.
The fetch for the current location will obviously have to be running at all times, and there are considerations of using too many client resources. With that being said, what are some of my options?
Yes, you can use the Google Places API for this: PlaceDetectionApi.getCurrentPlace(). See https://developers.google.com/places/android-api/current-place (and the Getting Started guide).
Can someone give a suggestion on how I can accomplish this? Basically my company would like to track all of its drivers route last location without having to store it. What I means is as follow.
driver A suppose to deliver 5 items to 5 different locations. So I have android mapped the driving route and off he/she goes. Location 4 called and said, its address has changed and would like someone to reroute the package to new location. So main dispatch, will need to check where Driver A is, so that he/she can be contacted and given the information.
I want the dispatch to be able to see driver A route and last location like this.
How can I accomplish this task without requiring Driver A android device to continuously broadcasting its last location and our server having to store all the devices information in our server. Basically I'd like to be able to find the last location of Driver A on demand and initiated by our server.
Hope I have explained what I wanted clearly. Please advise?
You can try the Google Cloud Messaging (GCM) or android-push-notifications.
What we decided to do at the end is, to store the historical location directly in our server every 5 minutes and write a code in the app to massage the information according to what we need. A reverse of what we didn't want to do before but we find no other way to accomplish what we want via google directly. Unless I'm mistaken. I'm open to comment. Many thanks.
My idea of android application is :
This application would be activated by a calendar
entry, showing that the phone user has an appointment
somewhere (i.e. meeting friends in a town 2 hours away).
The application would track the phones position and register that
the user is on his way to the appointment (by checking if the
user is following the route of Google maps to the destination).
The phone would keep a status of whether the phone owner
will arrive on time or be late
I am quite good at webdesign, but on android platform I am just a rookie
any expert good at android please suggest me good place to start with,
my biggest doubt is
Can i use google maps API to compare mock locations i use in simulator to locations and landmarks in google maps from source point to destination point?
I await some thing useful for me to start my work...
Take a look at glympse.com - they do this almost all of this already. It's also against the T&C of google maps to do routing, so I would very carefully read them and determine if your idea defies the T&C.