I´m making an app that requires the locations of all users that are signed into it and displaying all of their locations to each other on a map.
What tool can you recommend me for the job?
You can use google maps api for android (here), and have your app ask for device's current location when user signed on, then post the geo location to a server, finally display the available info using maps marker.
For creating such an app you need to have a PHP server that would first store the geocoordinates of all the users who are currently signed in in a MySQL database. Once you have that part of information you have to convert that database data into JSON object and create your own API/URL which can be requested via an Android client using HTTP. This would populate the maps of all your users with markers displaying their current location.
For implementation details please take a look at the following tutorial.
Related
how to parse and store distance and time to reach in SQlite Database in Android when open Google Map from using intent showing route and distance Automatically by navigating between two points?.
I don't think you can parse data directly from the Google Maps app. There are a couple of ways to go about this though. I would look at implementing some of the Google Maps API in your app to run before starting the intent. Or setup navigation in your app between the two points directly.
If you only want distances and travel times, then I would look at the Distance Matrix API. If you want inbuilt directions have a look at the other maps API like the full Android Maps API.
I want to build an application where the user can see his current location, and all the users logged in to the app as well.
I want to build it for Android and IOS.
Can I use Apple Maps on IOS and Google Maps API on Android?
Will the application be able to show the current logged in users location on both IOS and Android with no problems? even though am using Apple maps on IOS and Google Maps API on Android?
To be more clear: the android user can also see the IOS users on the map and Vice-Versa
Or I have to use Google Maps API on IOS as well?
Its possible. Just you need to save the lat long on your server of every logged in user. And while any client i.e. Android or iOS app login the app you can have an endpoint that returns the location of all logged in users in server. For server component, you need to develop one endpoint to save the lat long and one endpoint to fetch all the lat long's saved on server.
Of course can. iOS and Android native components will return you same location (as much as possible apart) in spherical coordinate system, then you can do with this location what do you want.
Yes you can. The information is sent by the clients, on the server side you can manage/handle that information as you want/need ;)
I was trying to work on creating a shared map for all users by using the Google Maps API. I would like User A to be able to see User B on the map, assuming User B is sharing his location. How can this be accomplished using Google Maps API on Android or iOS? This would basically resemble the Uber application where the costumers can see the drivers on the map.
As far as I know this functionality isn't really available through the API. What you could do is check if the user's location is available for sharing. Then using your own backend, most likely a MBaaS, share the location data with people they allowed access to their location. Then you could just draw a marker on the map representing the user
I am trying to create a map with locations marked with images. Users should be able to upload images and mark the locations using the gps co-ords in the images.
Any idea how to do it using google maps?
I came to the following conclusion after reading through google documentation.
All the information - the marker and image needs to be stored on your server. Google doesn't let users to host map data on their server. So if you have a server, you can save the geo lcoations and the uploaded image on it. When needed load those info when they are needed from the sever.
I am developing small app which take list of co-ordinates(longitude and latitudes) and plots the same in map view.
I also want to add some message for each location. Could anyone let me know if there is tutorial to complete this?
I already got API tokens in order to access googple map api.