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 ;)
Related
https://maps.googleapis.com/maps/api/place/nearbysearch/json?rankby=distance&location=LATITUDE,LONGITUDE&rankBy=50000&types=grocery_or_supermarket&sensor=true&name=NAMESEARCH&key=SERVER_KEY
how to use this link to return json format for the results, I already have an Server Key but it keep saying that "This IP, site or mobile application is not authorized to use this API key."
The official way to integrate Google Places API is through the Android implementation. You could use the PlacePicker which takes care the most but if you have a need that it doesn't fill, then you could integrate just the Place Autocomplete to your own UI.
Having said this if you would insist using the service url directly in an Android app, then you would need to configure a Browser Key in the Google Developer Console.
You shouldn't. Android has its own way to query places through the GooglePlayApiClient (read more here). You still want to use the web service you need a server key. From the documenation
Note: The Google Places API Web Service does not work with an Android
or iOS API key.
you can get the key here. Please, note that key has a limitation of 15k text searches per day. If you need more you will have to apply for a premium plane
I want you to delete the current server_key.
Create a new Server_Key.
It takes 10 mintues to activate the server_key, otherwise you will get error_message "The provided API key is expired".
Now hit the url voila it works!!!
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´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.
When testing Google Analytics (version 2) for an Android project, I noticed that the Real Time map shows my location to be about 200 miles from my actual location. I'm running my project on a physical device, which leads me to believe that Google Analytics doesn't actually send any location information, but rather gets it from the phones IP address when the data is sent to Googles server. Is there any way to alter this behavior and provide my own location data using getLastKnownLocation() for example? Sending it as an actual Label/Action string would of course work, but that means I can't use Google Analytics fancy map feature to view where my users are coming from.
You can't customize how Google gets the location data (which is by IP mapped location), however you can store custom dimensions and metrics: https://developers.google.com/analytics/devguides/collection/android/v3/customdimsmets
Google Analytics isn't really intended for fine grain location tracking. A good and free platform for location tracking is Cintric https://cintric.com/ which will track very precise locations.
Its a drop in SDK like google analytics. You then get access to a dashboard with all your users locations a a bunch of analytics / visualizations. It supports both android and iOS.
I am developing an application,I would like publish my application in android market. I want to find what are the user using my application and his location point out in Google map,How to find my user for my application,How to possible?
Thanks all
You need a server, which will collect the information from your app. And the app after installation will send the location info( if it is available ) through internet to your server. After you have the location info, you will be able to put the marks on google maps.