Skip to content
This repository has been archived by the owner on May 19, 2019. It is now read-only.
/ lat-lng Public archive

📍🌎 ⚠️Currently offline ⚠️A micro-service for physical address -> lat-lng

Notifications You must be signed in to change notification settings

dawsbot/lat-lng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lat-lng

Build Status

📍🌎 A micro-service for physical address -> latitude & longitude

When you need latitude and longitude, avoid Google's API limits by using this endpoint instead. lat-lng uses Google's API to accurately resolve latitude and longitude with caching .

⚡️ Simple caching layer on top, so repeat calls are served faster

👌 Only 35 LOC

Example

JavaScript is used here because it's popular and straightforward to reason about. Any language could be used:

Request:

fetch('https://lat-lng.now.sh/?address=Portland,OR')
  .then(res => res.json())
  .then(res => console.log(res));

Response:

{
  "formattedAddress": "Portland, OR, USA",
  "lat": 45.5230622,
  "lng": -122.6764816
}

Other valid examples:

License

MIT © Dawson Botsford

About

📍🌎 ⚠️Currently offline ⚠️A micro-service for physical address -> lat-lng

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages