x402

Address Geocode (x402)

Convert an address to geographic coordinates (latitude/longitude). Also returns structured address components and bounding box via OpenStreetMap Nominatim.

get/x402/v2/address-geocode

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/address-geocode
  • Auth: none required

Query parameters

addressstring required

Address or place name to geocode

Response

Success

latitudenumber
longitudenumber
place_typestring
bounding_boxobject
display_namestring
importance_scorenumber

Example response

{
  "found": true,
  "latitude": 48.8582599,
  "longitude": 2.2945006,
  "place_type": "tower",
  "bounding_box": {
    "east": 2.2956897,
    "west": 2.2933119,
    "north": 48.8590453,
    "south": 48.8574753
  },
  "display_name": "Tour Eiffel, 5, Avenue Anatole France, Quartier du Gros-Caillou, Paris 7e Arrondissement, Paris, Île-de-France, France métropolitaine, 75007, France",
  "input_address": "Eiffel Tower, Paris",
  "importance_score": 0.6205937724353116
}

Changes

No recorded changes to this operation across all 1 revision of this API.