mapq

An easy-to-use wrapper for the Mapquest Geocoding API
Download

mapq Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Zach Williams
  • Publisher web site:
  • http://zachwill.com

mapq Tags


mapq Description

mapq is an easy-to-use Python wrapper for the Mapquest Geocoding API.Make sure to register for Mapquest API key.Installationpip install mapqSettingsThe easiest way to use mapq is by setting the MAPQUEST_API_KEY environment variable in your local environment.export MAPQUEST_API_KEY="my_api_key"UsageThere are two ways of interacting with mapq's API.>>> from mapq import Geo>>> g = Geo('my_api_key')>>> g.address('155 9th St San Francisco, CA')>>> g.batch('94103', '1 Infinity Loop Cupertino', 'Yerba Buena Park')>>> g.reverse(37.775002, -122.418297){'looks': {'like': '155 9th St'}}>>> g.latlng('155 9th St San Francisco, CA'){'lat': 37.775002, 'lng': -122.418297}Alternatively, you can also use the Mapquest API without interacting with the Geo class.NOTE: Your MAPQUEST_API_KEY environment variable will need to be set.>>> import mapq>>> mapq.address('155 9th St San Francisco, CA')>>> mapq.batch('94103', '1 Infinity Loop Cupertino', 'Yerba Buena Park')>>> mapq.geocode('155 9th St San Francisco, CA'){'single': {'geocode': 'result'}}>>> mapq.reverse(37.775002, -122.418297){'looks': {'like': '155 9th St'}}>>> mapq.latlng('155 9th St San Francisco, CA'){'lat': 37.775002, 'lng': -122.418297}Product's homepage


mapq Related Software