Obtain latitude and longitude from address without the use of Google API

半腔热情 提交于 2019-11-27 11:48:03

问题


I am currently working on a large population-based database where it is required that I compute the distance between two addresses for each individual. My first train of thought was to obtain the latitude and longitude representing each address and then compute the distance. I used Google API's to obtain the latitude and longitude for these addresses via various packages in R (e.g. dismo). However Google has a restriction of 2500 requests in a 24hr period. I have about 300,000 addresses and by running 2,500/day, I will not be able to meet the deadline.

Would anyone have suggestions regarding other API's I could use to obtain the latitude and longitude using R?

Thank you.


回答1:


I would recommend that you try the RDSTK package which interfaces with the Data Science Toolkit. It is available on github.

EDIT. To compute the Road Distance, I would recommend the Mapquest Directions API, which appears to have no preset limits as per this link. Let me know how it goes.




回答2:


What you are doing is called "geocoding". Knowing that will greatly improve your ability to search for more info :) You may have already known that since you tagged the question properly, but I wanted to make sure.

Here's a really good previous Stack Overflow question, albeit not R specific.




回答3:


More options:

  • The geonames package to retrieve information from the geonames service.
  • The osmar package to use the API of openstreetmap.

Besides, the gdistance package is useful for distance calculations on geographical grids.



来源:https://stackoverflow.com/questions/9068941/obtain-latitude-and-longitude-from-address-without-the-use-of-google-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!