Prompt

How do I turn addresses into coordinates with an API?

Technology / API Platforms1 observationLast seen Oct 15, 2026

Latest observation

Oct 15, 2026OpenAI APIWeb search: off

To turn an address into coordinates, you use a geocoding API.

Basic idea

You send an address like:

  • 1600 Amphitheatre Parkway, Mountain View, CA

and the API returns:

  • latitude: 37.422
  • longitude: -122.084

Common workflow

  1. Pick a geocoding service
  2. Send the address in a request
  3. Parse the JSON response
  4. Extract lat and lng

Example using Google Geocoding API

Request:

GET https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&key=YOUR_API_KEY

Example response:

{
  "results": [
    {
      "geometry": {
        "location": {
          "lat": 37.422,
          "lng": -122.084
        }
      }
    }
  ],
  "status": "OK"
}

Example in Python

import requests

address = "1600 Amphitheatre Parkway, Mountain View, CA"
url = "https://maps.googleapis.com/maps/api/geocode/json"

params = {
    "address": address,
    "key": "YOUR_API_KEY"
}

response = requests.get(url, params=params)
data = response.json()

location = data["results"][0]["geometry"]["location"]
print(location["lat"], location["lng"])

Other popular geocoding APIs

  • Google Maps Geocoding API
  • Mapbox Geocoding API
  • OpenCage
  • Nominatim (OpenStreetMap-based; has usage limits/policies)

Things to watch for

  • API key required for most services
  • Rate limits
  • Ambiguous addresses may return multiple results
  • Some APIs return confidence/precision info
  • Always check the API’s usage policy

If you want, I can show you:

  • a JavaScript example
  • a Python example
  • or how to do this with a free/open-source geocoding API

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.