Examples

Practical code examples and snippets to help you integrate geog location services into your applications quickly and efficiently.

Basic API Usage

Simple examples to get you started

Place Search

Search for places, businesses, and points of interest

Geocoding

Convert addresses to coordinates and vice versa

Forward Geocoding

GET /v1/places/geocode/forward?q=1600+Amphitheatre+Parkway

Reverse Geocoding

GET /v1/places/geocode/reverse?lat=37.4220&lng=-122.0844

Framework Integration

Examples for popular frameworks and libraries

React + Mapbox

Interactive map with place search

Coming Soon

Build a React component that integrates geog place search with Mapbox GL JS.

Vue + Leaflet

Vector tiles with Leaflet

Coming Soon

Display geog vector tiles in a Vue.js application using Leaflet.

Node.js API

Server-side geocoding service

Coming Soon

Create a Node.js API that uses geog for address validation and geocoding.

Interactive Examples

Try out the APIs in your browser

Interactive Playground Coming Soon

We're building an interactive playground where you can test API endpoints directly in your browser.