简体   繁体   English

Google Maps API和ASP.Net

[英]Google Maps API and ASP.Net

I am new to Google Maps API and I have a requirement to integrate Google Maps API with an ASP.Net application. 我是Google Maps API的新手,我需要将Google Maps API与ASP.Net应用程序集成。 Is there a Google service where in I can input a UK postcode and radius as input parameters and get results only, without the map. 是否有Google服务,我可以在其中输入英国邮政编码和半径作为输入参数,并且仅获取结果而没有地图。

For example if I search for solicitors in a particular area like Z1 1XY (not real post code) with a radius of 5 mi, can I get the results of all solicitors with the postcodes 5 mile radius? 例如,如果我在半径为5英里的Z1 1XY(不是真正的邮政编码)之类的特定区域中搜索律师,我能否获得所有半径为5英里的邮政编码的律师的结果? Is there any service that would return the result set only? 是否有仅返回结果集的服务? I know GeoCoding does something similar but can I provide radius as one of the input parameter and get results. 我知道GeoCoding做类似的事情,但是我可以提供半径作为输入参数之一并获得结果。

Any help would be appreciated. 任何帮助,将不胜感激。 Thanks in advance. 提前致谢。

Seaton 西顿

The Geocoding API may only be used in conjunction with a Google map; 地理编码API只能与Google地图结合使用; geocoding results without displaying them on a map is prohibited. 禁止对结果进行地理编码而不在地图上显示结果。 For complete details on allowed usage, consult the Maps API Terms of Service License Restrictions . 有关允许的用法的完整详细信息,请参阅Maps API服务条款许可限制

Source: https://developers.google.com/maps/documentation/geocoding/#Limits 来源: https//developers.google.com/maps/documentation/geocoding/#Limits

yes, you can use the Google Geocoding API to do address lookups (in this case postcodes). 是的,您可以使用Google Geocoding API进行地址查找(在本例中为邮政编码)。 The response contains lat/lon co-ordinates which you can then subsequently use as the epicenter of your search to find items within a radius. 响应包含纬度/经度坐标,您可以随后将其用作搜索的震中,以查找半径内的项目。 Have a look at this blog post on how to use the DbGeography in .NET to perform radius queries based on lat/lon co-ordinates. 看一下有关如何在.NET中使用DbGeography来基于纬度/经度坐标执行半径查询的博客文章

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM