Charging Station Search
EvSearch class
Charging pile related search service
Constructor | Description |
---|---|
nimap.service.EvSearch(EvSearchOptions) |
EvSearchOptions | Type | Description |
---|---|---|
city | String | Required, search for the city (name/adcode) ), example "Beijing" or "110000" |
climit | String | default: true |
pageSize | String | Search results return per page, default 10 |
panel | String|HTMLElement | The HTML container id or container element of the navigation result list. Once this parameter is supplied, the result list will be displayed in this container. Optional |
map | Map | nimap.Map object, a map instance showing the results. When this parameter is specified, the location annotations for the search results are automatically added to this map. Optional |
Method | Return Value | Description |
---|---|---|
searchKeyword(keyword:String,function(result)) | according to Keyword search charging pile. | |
searchAround(keyword:String,range:<Object>,function(result)) | Nearby query based on latitude, longitude, radius and keywords of the center point Radius value range: 0-50000, default 1000 meters. For example {center:"116.12321,39.123231",radius:"2000"} | |
searchInPolygon(keyword:String,lonlats:<Array>,function (result)) | Search for range based on polygon latitude and longitude and keywords. Longitude and latitude are separated by "," The coordinate pairs are separated by ";". For example: "116.12, 39.21; 114.21, 38.21" or [[116.21,39.21],[114.21,38.21]] | |
searchInLine(keyword:String,range:<Object>,function(result)) | according to The navigation line latitude and longitude and keywords are searched along the way, for example: range={limit:"20000", radius:"3000", route:[lonlats]}. Limit: Defines the length of the route. The default is 20000 meters. Search by the route from the starting point to the limit length distance. Radius: search radius, in units of 1-1000, default 3000 meters | |
getDetail(id,function(result)) Td> | Acquire the charging post details based on the charging post information id. | |
setQuery(EvTripOptions) | Set the query parameters, same as EvTripOptions. | |
clear() | Clear the annotations and results displayed on the map. |