Skip to main content

Wemap Geocoding Services

URL

Wemap Geocoding Services live on the following host: https://api.getwemap.com

Geocoding / Reverse Geocoding

Geocoding allow you to perform geocoding or reverse geocoding.

GET /v3.0/geocoding/geocode?{parameter=value}

Request parameters

  • latitude (integer) – latitude.
  • longitude (integer) – longitude.
  • address (string) – address.
  • many (boolean) – return all responses. (optionnal)

Please note that either address or latitude & longitude are required.

Example geocoding request:

GET /v3.0/geocoding/geocode?address=avenue%20du%20bonheur%2C%20Camprieu HTTP/1.1
Authorization: Bearer 0a1b2c3d4e5f

Example reverse geocoding request:

GET /v3.0/geocoding/geocode?longitude=3.4847668&latitude=44.1140578 HTTP/1.1
Authorization: Bearer 0a1b2c3d4e5f

Example geocoding response

HTTP/1.1 200 OK
Content-Type: application/json

{
"address": "rond point du Lac, 30750 Saint-Sauveur-Camprieu, France",
"latitude": 44.113822,
"locality": "Saint-Sauveur-Camprieu",
"longitude": 3.484753,
"postal_code": "30750"
}

Example `many=true` geocoding response

HTTP/1.1 200 OK
Content-Type: application/json

[
{
"latitude": 47.2250661,
"longitude": -1.5180045,
"address": "Avenue du Bonheur, 44300 Nantes, France"
},
{
"latitude": 44.1140578,
"longitude": 3.4847668,
"address": "Avenue du Bonheur, 30750 Saint-Sauveur-Camprieu, France"
}
]

Timezone

Timezone allow you to return the timezone for the given coordinates.

GET /v3.0/geocoding/timezone

Request parameters

  • latitude (integer) – latitude. (Required)
  • longitude (integer) – longitude. (Required)

Example timezone request:

GET /v3.0/geocoding/timezone?longitude=3.4847668&latitude=44.1140578 HTTP/1.1
Authorization: Bearer 0a1b2c3d4e5f

Example timezone response

HTTP/1.1 200 OK
Content-Type: application/json

"Europe/Paris"