POI Lookup

Platform: API iOS Android

POI Lookup API provides basic information of POI(scenic spot, tide stations, currents stations, etc.)

Interface code Interface Class
geoPoiLookup POI lookup GeoPoiResponse

Parameters

GeoPoiLookupParameter

  • location(required)The location to be queried, support text, LocationID, comma-separated longitude and latitude (decimal, up to 2 decimal places), Adcode(Chinese cities only). For example: location=beijing or location=116.41,39.92
  • type(required)Choose to search for a certain type of POI.
    • scenic Scenic Spot
    • CSTA Currents Station
    • TSTA Tide Station
  • citySearch for POI within a given city. The city name can be text or the city’s LocationID.
    The city name is an exact match. It is recommended to use LocaitonID. If the text cannot be matched, the data returned will be empty.
  • numberNumber of the results in response, from 1 to 20, 10 is the default.
  • langMulti-language setting, please see Language to find out how our multi-language works and how to set up.

Sample code

public void geoPoiLookup(GeoPoiLookupParameter parameter, Callback<GeoPoiResponse> callback);

Response

GeoPoiResponse

  • code See Status Code
  • poi.name POI Name
  • poi.id POI ID
  • poi.lat Latitude of the POI
  • poi.lon Longitude of the POI
  • poi.adm2 Name of the superior administrative division of the POI
  • poi.adm1 The first-level administrative area of ​​the POI
  • poi.country Country name of the POI
  • poi.tz POI timezone
  • poi.utcOffset The number of hours offset between local time and UTC time, refer to UTC Offset
  • poi.isDst Is the POI currently on daylight saving time. 1 for daylight saving time and 0 for not in daylight saving time.
  • poi.type POI type
  • poi.rank POI Rank
  • poi.fxLink Responsive web page of this location, easy to embed in your website or APP
  • refer.sources Data source and other statements, may be null
  • refer.license Data license, may be null