coordinates_simple (gis_search)

To get the coordinates by specifying the address, use the following request:

Copied!
https://search-maps.wialon.com/<host>/gis_search?country="<text>"&region="<text>"&city="<text>"&street="<text>"&
flags=<uint>&count=<uint>&indexFrom=<uint>&uid=<long>

The is usually hst-api.wialon.com.

Parameters

The required parameters are marked with an asterisk (*).

Name

Description

country

Name of a country or its part.

region

Name of a region or its part.

city

Name of a city or its part.

street

Name of a street or its part.

flags*

Search and format flags. See the description below.

count*

Output result count.

indexFrom

Sequence number of the first result.

searchFlags*Additional search flags. See the description below.
gis_sid*Unique ID of the user session.

uid

Current user ID. Deprecated, always use gis_sid.

Search flags

FlagDescription
0x100Dump the path in the result.
0x200Dump the map name in the result.
0x400Dump the map coordinates in the result.
0x800Do not create JSON. Return results as a list of objects.

Flags

Flag

Description

0x0

Search country.

0x1

Search region.

0x2

Search city.

0x3

Search street.

0x4

Search house.

0x100

Add fields with a formatted address path to the result.

0x200

Add the map name to the result.

0x400

Add coordinates to the result.

Format flags are described here.

Error codes

Error codeDescription
1Invalid session.
4Wrong input parameters.
6Unknown error.
7Access denied, unknown search provider.

Response

Copied!
{
	"items":[	/* array of results */
		{
			"name":"<text>",		/* name of the search item*/
			"map":"<text>",		/* map name */
			"x":<double>,		/* longitude */
			"y":<double>,		/* latitude */
			"path":"<text>",		/* part of the address path, excluding the part placed in "name" */
			"formatted_path":"<text>"	/* address string formatted according to the flags */
		}
	],
	"more":<uint>	/* additional results: 0 - no, 1 - yes */
}
Download PDF file
Download Word document

See also