Location:

Geo/Reverse Geocoding

Geocoder class

Users can use this class to convert structured addresses (provincial and county streets, house numbers, etc.) into latitude and longitude coordinates. The more complete the expression, the higher the latitude and longitude accuracy, and the reverse latitude and longitude can also be reversed by calling the inverse geographic interface. Convert to a structured address for geocoding reverse service.

ConstructorDescription

nimap.service.Geocoder()


MethodReturn ValueDescription

geo(address:String,{city:String},function(result))

according to The address information or the landmark point name obtains the latitude and longitude information, and follows the rules: country, province, city, district, town, town, village, street, house number, housing, building. Such as: Beijing Dongzhimen South Street No. 10.

regeo(lonlats,function(result)) or regeo(lonlats,<Object>,function(result))

Query the corresponding structured address, administrative division data and the distribution of surrounding high-weight landmarks according to the latitude and longitude. The default NavInfo latitude and longitude query regeo (lonlats, function (result)). Or other map coordinate system queries (gbd, g84) query structured addresses and return relevant landmark locations. Object={type:"gbd",poi:"true",road:"true"}, whether poi returns nearby poi points, whether the road returns nearby road information

TOP