Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 478 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 478 Bytes

py-bing-maps

Bing Maps wrapper for Python

A python wrapper for the Bing Maps REST API.

You need a Microsoft account and an API key to use.

Use

import py-bing-maps

bing = py-bing-maps.bing('insert api key as string')

Return route JSON

start = (37.828947, -122.249114)
end = (37.824608, -122.256431)
bing.route(start, end)

Get travel time and travel distance

bing.travelTime(start, end)
bing.travelDistance(start, end)