views:

87

answers:

1

I have a list of phone numbers with area code prefixes that I want to find a latitude/longitude location for.

Is there a library (ideally Python) or service that can do this?

+1  A: 

You may be able to obtain limited free information (e.g. town) or, for a hefty fee, some relatively more detailed information (address), from various Whitepages-like providers. This should cover landlines as well as, to some degree, mobile (cell) lines. Be aware that in the case of mobile lines the information (billing address at best, BTW, not terminal location) may be sketchy or even misleading (the numbers can be registered to third-party companies which manages fleets of cell phones for businesses -- companies which may be registered at addresses completely different from those of the businesses using the fleet.) You would then have to resolve the street address to latitude/longitide, so it would be a two-step process. As for VoIP, you can read about GEOPRIV.

Take a look inside this whitepages.com sample to see how they expect you to interact with their database (I doubt it's what you want, but it's what they offer.)

vladr
another possibility is the Yelp API: http://www.yelp.com/developers/documentation/phone_api
Plumo