Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sean-hill/simple-bing-geocoder
https://github.com/sean-hill/simple-bing-geocoder
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sean-hill/simple-bing-geocoder
- Owner: sean-hill
- License: mit
- Created: 2014-02-13T22:54:32.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-13T22:55:32.000Z (almost 11 years ago)
- Last Synced: 2024-12-08T09:37:15.709Z (28 days ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
# Geocoder
###Installation:
npm install simple-bing-geocoder
### Usage
You can pass a string representation of a location and a callback function to `geocoder.geocode`. It will accept anything that Bing will accept: cities, streets, countries, etc.
###Example:
var geocoder = require('simple-bing-geocoder');
// Geocoding
geocoder.geocode("350 5th Ave, New York, NY 10118", function ( err, data ) {
// do something with data
}, { key: "YOUR_BING_API_KEY" });Results will look like standard [Bing JSON Output](http://msdn.microsoft.com/en-us/library/ff701714.aspx)