- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在尝试获取道路交叉口的坐标,类似于在 Google map 中输入“1100 N & 300 W”,但给出的表格包含数万对。有谁知道支持这种类型搜索的地理定位模块?
我正在测试 geopy,它可以轻松定位一条道路,甚至包括按区域(即城市或县)限制搜索的选项,但在多次尝试更改我的测试交叉口措辞后仍然无法超越定位单个道路。
我尝试简单地将道路名称更改为更具描述性,即 CR 1100 N 和 CR 300 W...W CR 1100 N 和 N CR 300 W,但包含 CR 实际上会完全引发错误。
这是我到目前为止所拥有的......
from geopy.geocoders import Nominatim
geolocator = Nominatim(user_agent="agent", format_string="%s, Madison County, IN")
location = geolocator.geocode("1100 N & 300 W")
print(location.address)
print(location.latitude)
print(location.longitude)
结果:
地址:North 300 West, Anderson, Madison County, Indiana, 46011, USA
纬度:40.142406经度:-85.728747
预计纬度:40.262935预期长度:-85.728308
最佳答案
尝试:https://geocoder.ca/1100%20N%20&%20300%20W%20ALEXANDRIA,%20IN
这个十字街位置。 (1100 N & 300 W 亚历山大) 40.262950, -85.72831
也可以是 JSON:https://geocoder.ca/1100%20N%20&%20300%20W%20ALEXANDRIA,%20IN?json=1
{ "standard": { "staddress": "N & 300", "stnumber": "1100", "postal": "46063", "street1": "1100 N ", "city": "亚历山大", "prov": "IN", "street2": "300 W ", "confidence": "0.8"}, "longt": "-85.728310", "TimeZone": "美国/印第安纳州/印第安纳波利斯", "区号”:“765”,“latt”:“40.262950”}
关于python - 按道路名称交叉点进行地理编码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56581325/
我正在制作一个基于网格的游戏。 在这个游戏中,您可以放置建筑物、墙壁和道路。 当某些东西被放置在网格中时,我将单元格 ID 设置为该对象 ID。到目前为止一切顺利,一切正常。 当我需要时,我的问题
我想创建一个交互式 map ,其中道路等的样式为我想要的颜色。现在,我了解了 Mapbox,但这不是我们想要使用的,因为最终它会因为费用而花费我们很多钱。 我一直在互联网上寻找替代方案。我发现了很多拼
我正在尝试用 Java 制作一个正则表达式,它可以粗略地用于匹配某些街道名称。我想这样做,以便给定以下字符串: Then someone decided to go to the high stree
尝试用颜色“标记”一个区域并在该区域放置一个数字: 我在这里说明了它: 数字是静态的,不会改变。 区域标记假设会改变颜色。并且区域标记假设使用周围的街道/道路包围该区域(不仅仅是简单的圆形图) 我会尝
我需要能够使用 V2 或 V3(最好是 3)创建在某种意义上忽略建筑物的路径。 我什至试图创建一个 kml 文件来自己绘制所有路径,然后找到一些方法根据需要打开/关闭它们。 例如。用户想从 A 点到
我在 http://www.41latitude.com/post/1268734799/google-styled-maps 上找到了一个代码片段: [ { featureType: "
我正在使用 Roads Google API 传递一个位置列表,我想根据这些点在最有可能由汽车行驶的道路上画线。 有些地方出了问题,因为有些点没有被线穿过,而且这些线不仅仅使用道路,有些点通过直线穿过
我们如何使用切换按钮在 Mapbox gl js 中突出显示(更改颜色)道路、人行道或自行车道? 最佳答案 您可以使用setPaintProperty更改图层的填充颜色,就像在官方 Mapbox 示例
我正在尝试在道路上绘制一条路径并遵循一些给定的点。我正在使用 Google Directions API 来遵循道路。我在道路上放置了一些标记并将这些点与折线连接起来。我需要遵循红线但是它跟随并绘制蓝
我是一名优秀的程序员,十分优秀!