对于停车位谷歌广场API [英] Google Place API for Parking Spots

查看:353
本文介绍了对于停车位谷歌广场API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚使用谷歌API的地方寻找一个停车点附近的位置。它的伟大工程,我得到的反应,当我进行简单的GET请求,以谷歌的地方API

这里是一个网址发送简单请求得到停车位的附近位置

<$p$p><$c$c>https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=LAT,LONG&radius=500&types=parking&sensor=false&key=APIKEY

当我通过经纬度长时间我目前的城市比我得到

  {
   html_attributions:[],
   结果:
      {
         几何 : {
            位置 : {
               纬度:23.027462,
               液化天然气:72.57919699999999
            }
         },
         图标:http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png
         ID:6f7c1e623f7d6a70eb612d6f58373c222b5f1c97
         名:AMC薪酬和公园,
         参考 : "CoQBcwAAAF7ZnmGltBQ7log8OTHxhjqMNZKq2wQTffbXmTI2u4Lm-QXhAOVTxwK2Lu_SSuZgdQ1uVMLmo9hhJhXHT7Loa4LEzqOePfGwJvZ3pGbEFdg7fEGsqaNdNpVnw0hMUK4qFkBlh5fstFAoanUGJ5LRistdJI7otAwQ-bWQIPXH_DJXEhCTkcSIZq-69YHIURouswj7GhTCyO-tz0DiTdVozVlBBqiC15T4OA",
         类型:停车,建立],
         一带:汗布尔,Amdavad
      },
      {
         几何 : {
            位置 : {
               纬度:23.026521,
               液化天然气:72.583656
            }
         },
         图标:http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png
         ID:37ba75c2dd455b0c63c207f17fdbb27b​​b11951bb
         名:AMC停车场,
         参考 : "CnRuAAAAXfjCgAfzvpuB3Bp_iWgXFnPp3O_I24ozqvfKnzND1jH5pZ5y_skNlCDSyworLODMTjJ7Bx9EabdRsaWuoWGYnb4W5axP9unFvprwftoDfAbWFS0RQREl01mCyeU-jO56izs9Q6KerrPkbZR2M_E9NRIQ5gVcDojpihbQQGDhjHDvAxoUhJTBKuodC-bBz_Ovdq4cbu67eQk",
         类型:停车,建立],
         一带:救灾路,Gheekanta,Bhadra,Amdavad
      }
   ]
   状态:OK
}
 

确定我的查询是这样的,就是这个数据是实时/真实?

正如我所看到的Card2Go和放大器; http://www.parkwhiz.com/developers/ 是提供非常好的数据,它是雷尔和更新非常freaquently。

为什么我不能使用的car2go和ParkWhiz的原因是,这些服务仅可用于specif的国家,我不想让仅针对特定国家我的应用程序。所以我已经决定使用谷歌API的地方为停车位。我认为,谷歌的数据没有太大的频繁更新,因为这些的car2go和ParkWhiz API的数据被更新。难道不是吗?

它是确定使用谷歌API来找到最近的停车位?另一个问题是,谷歌是针对街停车场提供数据呢?

如果任何一个有关于这方面的一些很好的建议,比这将是非常美联社preciated。

感谢

解决方案

@Aamirkan - 最好的停车API我们有parkme.com。数据的最高质量。大多数国家服务。即时的。等你看到了吗?

https://www.parkme.com/how-it-works#api

充分披露 - 我为他们工作: - )

I have just used google place api for finding a parking spots near by location. It works great and i am getting response when i make simple GET Request to google place api

here is a url for sending Simple Request to get Parking Spots for the near by location

https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=LAT,LONG&radius=500&types=parking&sensor=false&key=APIKEY

And when i pass lat long for my current city than i am getting

{
   "html_attributions" : [],
   "results" : [
      {
         "geometry" : {
            "location" : {
               "lat" : 23.027462,
               "lng" : 72.57919699999999
            }
         },
         "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
         "id" : "6f7c1e623f7d6a70eb612d6f58373c222b5f1c97",
         "name" : "AMC Pay and Park",
         "reference" : "CoQBcwAAAF7ZnmGltBQ7log8OTHxhjqMNZKq2wQTffbXmTI2u4Lm-QXhAOVTxwK2Lu_SSuZgdQ1uVMLmo9hhJhXHT7Loa4LEzqOePfGwJvZ3pGbEFdg7fEGsqaNdNpVnw0hMUK4qFkBlh5fstFAoanUGJ5LRistdJI7otAwQ-bWQIPXH_DJXEhCTkcSIZq-69YHIURouswj7GhTCyO-tz0DiTdVozVlBBqiC15T4OA",
         "types" : [ "parking", "establishment" ],
         "vicinity" : "Khanpur, Amdavad"
      },
      {
         "geometry" : {
            "location" : {
               "lat" : 23.026521,
               "lng" : 72.583656
            }
         },
         "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
         "id" : "37ba75c2dd455b0c63c207f17fdbb27bb11951bb",
         "name" : "AMC Parking",
         "reference" : "CnRuAAAAXfjCgAfzvpuB3Bp_iWgXFnPp3O_I24ozqvfKnzND1jH5pZ5y_skNlCDSyworLODMTjJ7Bx9EabdRsaWuoWGYnb4W5axP9unFvprwftoDfAbWFS0RQREl01mCyeU-jO56izs9Q6KerrPkbZR2M_E9NRIQ5gVcDojpihbQQGDhjHDvAxoUhJTBKuodC-bBz_Ovdq4cbu67eQk",
         "types" : [ "parking", "establishment" ],
         "vicinity" : "Relief Rd, Gheekanta, Bhadra, Amdavad"
      }
   ],
   "status" : "OK"
}

ok my query is that, is this data are live/real?

As i have seen Card2Go & http://www.parkwhiz.com/developers/ is providing very nice data and it's reall and updating very freaquently.

The reason why i am not using Car2Go and ParkWhiz is that , these services are available for only specif country, I don't want to make my application for only specific country. So i have decided to use Google Place API for Parking Spots. I think Google Data is not that much frequently updated as these Car2Go and ParkWhiz API's data is updated. Isn't it?

Is it ok to use Google API for Finding Nearest Parking Spots? Another question is that is Google is providing Data for Street Parking As well?

If any one have some nice suggestions regarding this than it will be highly appreciated.

Thanks

解决方案

@Aamirkan - The best parking API our there is parkme.com. Highest quality of data. Most countries served. Real time. Etc. Did you look at that?

https://www.parkme.com/how-it-works#api

Full disclosure - I work for them :-)

这篇关于对于停车位谷歌广场API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆