Geocoder

Infinit Geocoder allows you to generate real random addresses, with 3 different modes:

  • Coordinates mode

  • City mode

  • Country mode

Coordinates mode

This mode is useful in order to redirect a package from a nearby address. It will return the amount of addresses requested within the radius selected.

Coordinates mode uses a coordinate as an input. Coordinates must follow this format:

  • Latitude: Decimal number between -90 and 90

  • Longitude: Decimal number between -180 and 180

For example: 41.404210858981415, 2.1741892958351143 (Sagrada Família, Barcelona) Latitude: 41.404210858981415 Longitude: 2.1741892958351143

In order to get the coordinates you can use Google Maps.

  • Search the desired place on Google Maps

  • Right click on the map and select the coordinates, they will be copied to your clipboard. The first number will be the latitude and the second one the longitude.

City mode

This mode is useful when a site has country restrictions or when you want to use addresses only from a specific city. It will return the amount of addresses requested inside the radius selected.

City mode will use one or more cities as the input. Cities must be real and they need to be separated with commas. For example:

Barcelona, London, Paris

Country mode

This mode is useful when a site needs real addresses from a specific country or you just want to generate real addresses from different countries quickly.

Country mode will use one or more countries as the input. Countries must be real, and they need to be separated with commas. For example:

ES, GB, FR

You can check all alpha 2 codes here

In order to use the Infinit Geocoder, you must have a Mapbox token.

Steps to follow

First of all, you need to create a Mapbox account here in order to get your Mapbox token.

Fill the form with your details and click Get started. You will receive a confirmation email, you must confirm it in order to login.

After logging in, just click on the Access token to copy it to your clipboard.

Finally, add your Mapbox token to the settings.json. Make sure that it follows a correct JSON formatting: paste it between " " as shown below.