Skip to content

geocode

Adrian Gortzak edited this page Apr 30, 2026 · 11 revisions

Geocode search for coordinates

Converts the search query to coordinates

The code below gives an example of how to use the client to get a geocode

import valueguard

vgClient = valueguard.Client()
vgClient.authenticate("<username>", "<password>")


print(vgClient.geocode(
    query="Drottninggatan",
    limit=10,
    match_type="address",
    exact_match=False
))

Field list

Field name Description Example
name The complete name of the search result UPPSALA KÅGARBOL 1:3
wgs84lat Latitude coordinate in the WGS84 format 59.82456923826135
wgs84lon Longitude coordinate in the WGS84 format 18.0641791324908

Search criteria fields

Field Name Description Example
match_type Specifies the type of data used for matching. Supported values are address and property_unit_designation address
exact_match Indicates whether an exact (full) match is required true
query The search string to retrieve coordinates Uppsala
limit The maximum number of search results to return 10

Query example format

Address

You can enter addresses in any of the following formats:

  • Myrgången 198
  • Myrgången 198, Trollhättan
  • Myrgången 198, 461 62 Trollhättan
  • Myrgången 198, 46162 Trollhättan

property_unit_designation

You can enter property unit designations such as:

  • UPPSALA KÅGARBOL 1:3
  • STOCKHOLM NORRMALM 1:1

Raw request

Get

curl https://api-prod.valueguard.se/v1/geocode?access_token={access_token}&match_type={match_type}&query={query}

Clone this wiki locally