bing-coordinates

Node wrapper around the Bing Maps REST Services, it returns only the coordinates.

Usage no npm install needed!

<script type="module">
  import bingCoordinates from 'https://cdn.skypack.dev/bing-coordinates';
</script>

README

Installation

npm install bing-coordinates

Usage

var bingCoordinates = require('bing-coordinates');

bingCoordinates.setMapKey(YOUR_BING_MAP_KEY);

bingCoordinates.getCoordinates(LOCATION, function(err, coordinates){
  console.log('Latitude: ' + coordinates.latitude, 'Longitude: ' + coordinates.longitude);
});