In my app I ask user to enter his location(text) and call Google web service to find out geocodes and then display on map.
Now I also want the user to fine tune his location by moving the marker on the map.
How can this be done?
Rgds,
Sapan
Please take a look at this source http://bazaar.launchpad.net/~financisto-dev/financisto/trunk/view/head:/src/ru/orangesoftware/financisto/activity/LocationActivity.java at LocationOverlay inner class in particular
Related
I am trying to build a tracking application where I get users GeoPoints with users permission and then upload that on Firestore database. After that I use the Geopoints to add markers on map which helps to locate a particular user on google map. However, I am planning to add an option to hide location for the user which when chosen by the user, the location of that particular user won't be visible on the map.I am using google service to constantly update the location of a user. Can someone please shed a little light on it,how I can stop getting the location of a user and remove the marker from the google maps for that particular user? Thanks in advance.
The simplest way I can think of, is to add under each user object a new property of type Boolean named locationSharing with the default value of true. Once the user decides to go private, just change the value of this new property to false. Now, attach a snapshot listener on the user document to see the changes of locationSharing property in real time. If the value of locationSharing property turns into false, then just stop updating the location of the user on Google Maps. That's it.
I'm a newbie in android. All I can do is to put a marker in the user current location.
But what I need to do is put a marker in the user current location and to a specific places that near the user location. For an example a marker in the user and a marker in all the KFC that near the user location. But I don't have any idea yet how to make this work.
any thoughts will be accepted.
what you might need to do is an annotation, or itemizedOverlay. This is covered in Part 2 of this tutorial, which is step by step.
https://developers.google.com/maps/documentation/android/hello-mapview
Otherwise if you are just firing an intent to the map app. Then just sending the location of KFC would suffice since the user location will appear in the native app anyway
http://developer.android.com/guide/appendix/g-app-intents.html
geo:latitude,longitude
geo:latitude,longitude?z=zoom
geo:0,0?q=my+street+address
geo:0,0?q=business+near+city
My application requires that a user select a location on a MapView. I will be using Google Places API to place location markers on the map. There will be times however when a user might select a location, for example a fountain in a park, that IS NOT listed in the Places API. One option is to offer users a choice of selecting a location with a touch on a map, OR selecting map markers of known locations using two different maps for each activity. I think the perfect solution however would be to use one MapView that contains the mapmarkers but also allow the user to select a location that does not have an associated marker.
My thoughts were to apply a reticle in it's own Overlay that stays centered in the middle of the MapView despite scrolling and a select button to make the selection.
If the reticle is over a marker, for example, Sams Cafe', then the button would read "Select Sam's Cafe'", if the reticle isn't over any Map Markers, then the button would read "Select this location".
I am having trouble figuring out a way to verify the reticle is over a marker. Since the marker is limited to a single GeoPoint, it's going to be very difficult, frustrating and time consuming for the user to try and match the reticle center to the exact GeoPoint.
What would be optimal is a check to see if the reticle is over the Map Marker graphic. I presume this will utilize projections and bounds??
Two questions, How to do this if possible?
or, is there a better UI that I am overlooking that is much easier to achieve?
Thank you for your consideration.
If you use the way you saying is better than anyone, but why dont you keep away any user from any kind of geocoding. Like user selects the location through marker, on the basis of that user will confirm the location, if it has got any place then it will show the address or it will show the nearby location. e.g. let the user select the location from marker get the longs. and lats. , If user confirms that location then put it onto geocoding and get the location address, it will surely return an address maybe exact or nearby and if user likes it, user will confirm it, simple. Please notify if its not feasible way.
first i would love to thank you for help me,i am develop the android application that contain 3 activities one of them is map.i am using google maps
what i want : 1- when the user open the activity (map) it shows the user her location not the coordinate 2- the user also can be able to positing(pining) any place by using pin and my app must store the coordinates for this pin in variable so i can use it later. PlEASE HELP ME
You should first obtain the user latitude and longitude. Then use the GeoCoder to obtain the address.
You have the complete code here , https://stackoverflow.com/a/3145655/563306
I would like to start a Maps activity and get back a location result. Is this doable without using a MapView and having to require the google maps library?
Yes it is possible.
you should add "onclick" event listener to your map. It will return coords when event is fired.
Please find more details in map API documentation. http://code.google.com/apis/maps/documentation/javascript/events.html
You know the Geo position / name of the location. You can get the location information using Google Maps Web Service API.
Pleas look into the following link for details. http://code.google.com/apis/maps/documentation/webservices/
If you are sure about getting location information from Map Acitivity, You cant achieve it without using MapView.
PS: Other Suggestion is You can have it a static map and respective location matrix if the map area is well defined.