Skip to main content

Geocode Address

Convert a street address to geographic coordinates (latitude/longitude).

Query Parameters

string
required
Street address to geocode (URL-encoded)

Response

boolean
Geocoding success status
object
Location with coordinates

Request Example

Response Example


Reverse Geocode

Convert geographic coordinates to a street address.

Query Parameters

number
required
Latitude in decimal degrees
number
required
Longitude in decimal degrees

Response

boolean
Reverse geocoding success status
object
Location with address information

Request Example

Response Example

Success

Use Cases

Address Input with Autocomplete

Geocode user-entered addresses:

Map Marker Click

Get address from map coordinates:

Current Location Display

Show user’s current address:

Colombian Address Format

Colombian addresses follow a specific format:
  • Calle/Carrera: Street type
  • Number: Street number
  • #: Separator
  • Cross street: Intersecting street
  • -: Separator
  • Building number: Specific building/house number

Examples

  • Carrera 15 #85-30 - Career 15, at intersection with Street 85, building 30
  • Calle 72 #10-20 - Street 72, at intersection with Career 10, building 20
  • Diagonal 50 #25-15 - Diagonal 50, building at 25-15

Error Responses

Bad Request
Invalid coordinates or missing address
Not Found
Address or coordinates could not be resolved
Internal Server Error
Geocoding service error

Notes

The geocoding service uses OpenStreetMap or Google Maps API (depending on configuration). Ensure coordinates are within Colombia for best results.
Geocoding may have rate limits. Cache results when possible to avoid repeated API calls.

See Also