All Projects → dawsbot → lat-lng

dawsbot / lat-lng

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

Programming Languages

javascript
184084 projects - #8 most used programming language

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].