-1

i'm getting latitude and longitude of a location, I want to know the roads connecting to that location and whether it is land or water

I tried one google map api which is not helping to get the information i want. http://maps.google.com/maps/api/geocode/json?latlng=40.7127,74.0059&sensor=true

Amaldev
  • 983
  • 8
  • 10

1 Answers1

0

Another SO answer pointed out two possible workarounds:

  • You can use Google Maps Reverse Geocoding . In result set you can determine whether it is water by checking types. In waters case the type is natural_feature. See more at this link http://code.google.com/apis/maps/documentation/geocoding/#Types.

  • You can detect waters/lands by pixels, by using Google Static Maps. But for this purpose you need to create http service.

You can use the Google Maps Geocoding API which does exactly that: http://code.google.com/intl/da-DK/apis/maps/documentation/geocoding Take a look at the "Reverse Geocoding" section

nitish516
  • 174
  • 14
  • i also need roads connecting to that location – Amaldev Jun 04 '15 at 12:03
  • You can use the Google Maps Geocoding API which does exactly that: http://code.google.com/intl/da-DK/apis/maps/documentation/geocoding/ Take a look at the "Reverse Geocoding" section. – nitish516 Jun 04 '15 at 13:08
  • clicking on the link- http://code.google.com/intl/da-DK/apis/maps/documentation/geocoding gives 404 error – Amaldev Jun 04 '15 at 17:54
  • Try this https://developers.google.com/maps/documentation/geocoding/#ReverseGeocoding – nitish516 Jun 04 '15 at 19:25
  • i appreciate your effort, but those apis are used to get address_components of your points, i want the information about the connecting roads.If there are 2 roads i want both – Amaldev Jun 05 '15 at 04:33