【问题标题】:How to get the JSON file如何获取 JSON 文件
【发布时间】:2014-07-10 09:11:45
【问题描述】:

如何从这个网站http://espace-sfr.sfr.fr/espace-sfr/recherche获取地图上的标记列表(json)

我需要从地图中获取标记以在我自己的地图上显示它们。那么是否有任何包含所有这些点和坐标的 json 文件呢?

【问题讨论】:

    标签: json google-maps map


    【解决方案1】:

    看看google maps api

    https://developers.google.com/maps/documentation/

    你可以查询某个位置,你会收到json坐标。

    【讨论】:

    【解决方案2】:

    假设你有 jsonfile

                    for (var i = 0; i < jsonfile.length; i++) {
    
    
                   var pos=   new google.maps.LatLng(jsonfile[i].lat,jsonfile[i].lng);
    
    
                }
    

    【讨论】:

      猜你喜欢
      • 2014-08-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-02
      • 2019-06-09
      • 2017-08-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多