android - Get longitude and latitude by touch event -


How can I get location latitude and latitude by touch events on the marker? I want that when users click somewhere on the map, its latitude and longitude please help me. Thanks

Just override the method of class. Click the field LatLng point will be, then:

  map.setOnMapClickListener (new OnMapClickListener () {@Override public void onMapClick (LatLng point) {/ / TODO auto generated method strub double latitude = dot.liteitude; double lng = point.langey;}});    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -