Google Geocoding API Licensing - c#

I'm building an application and I need to get the coordinates based on address, so I'm planning to use the Google Geocoding API. As I read in the Geocoding reference https://developers.google.com/maps/articles/geocodestrat I may store the data to avoid exceed the limit.
However, my application it's not a map based, I mean, has no map in my application and I just need the coordinates (latitude and longitude) to fulfill an own system that get some store information within a radius from coordinates.
Could I use the Google Geocoding API for this purpose? Is it allowed by licensing?

10.1.1 (h) No Use of Content without a Google Map. You must not use or display the Content without a corresponding Google map, unless you are explicitly permitted to do so in the Maps APIs Documentation. In any event, you must not use or display the Content on or in conjunction with a non-Google map. For example, you must not use geocodes obtained through the Service in conjunction with a non-Google map. As another example, you must not display Street View imagery alongside a non-Google map, but you may display Street View imagery without a corresponding Google map because the Maps APIs Documentation explicitly permits you to do so.
https://developers.google.com/maps/terms

Though the general terms disallow use of content without a Google map, I think the specific terms for the Geocoding API permit it.
The following terms apply only to the Geocoding API:
3.1 Use without a Google Map. Customer may use Google Maps Content from the Geocoding API in Customer Applications without a corresponding Google Map.
Source: https://cloud.google.com/maps-platform/terms/maps-service-terms#3.-geocoding-api

Related

Bing Maps API in Bot Framework

Using .Net framework to building application. I have created a Bing Maps API service in Azure and I want to integrate it in a chat bot created using Bot Framework. I have generated the key for using map.
I am able to show list of locations based on a keyword. I am using https://dev.virtualearth.net/REST/v1/Locations?form={FormCode}&q={keyword}&key={BingKey}. It works fine and I am able to see the locations as Maps.
Now I want to search things like doctors near me or something like this. However I am not able get any reference of it. Its very confusing. I am not sure how to do it. Could anyone please guide me on this?
With some reading, maybe we have search data by passing key and data source ID however I am not sure how to create Data Source for Bing Maps.
You are looking for Points of Interest (POI) so you have to use Bing Spatial Data Services.
There are several Data Sources available:
FourthCoffeeSample which is a sample datasource
NAVTEQNA for POI provided by NAVTEQ for North America
NAVTEQEU for POI provided by NAVTEQ for Europe
etc.
Each DataSource has a different base URL:
FourthCoffeeSample: http://spatial.virtualearth.net/REST/v1/data/20181f26d9e94c81acdf9496133d4f23/FourthCoffeeSample/FourthCoffeeShops
NAVTEQNA: https://spatial.virtualearth.net/REST/v1/data/f22876ec257b474b82fe2ffcb8393150/NavteqNA/NavteqPOIs
NAVTEQEU: http://spatial.virtualearth.net/REST/v1/data/c2ae584bbccc4916a0acf75d1e6947b4/NavteqEU/NavteqPOIs
How to make a query? The syntax's documentation is available here
You may also be interested by some references:
EntityTypes list for NAVTEQEU and NAVTEQNA: https://msdn.microsoft.com/en-us/library/hh478191.aspx
There is also an example of use of these API here (in JS).

Finding likely locations in Xamarin using google maps API

I am working on a Xamarin iOS project trying to display a list of the most likely locations based on the user's GPS coordinates using either the Place Picker or GMSPlacePickerViewController from the google maps API, as shown in this Swift tutorial.
However I can't seem to find any decent tutorials using C#. I don't want to display the map to users I simply want to retrieve the list of most likely locations based on the coordinates.
Any guidance would be greatly appreciated as I'm at a bit of a loss about how to use the google maps API to achieve this.
Okay answering this for anyone coming after me and trying to do something similar.After lots of searching I have realised it is possible to use the nearbySearch method from the Google Places API Web Service to retrieve a list of addresses near particular coordinates within a specific radius (in metres). You can optionally specify the type of addresses you are searching for, e.g. Restaurants.
Not sure how I missed this but there is a Place Search demo at the bottom of this page;
https://developers.google.com/places/web-service/

C# Google Maps Api - Using the API and Getting to Know If There Is a Way Between A and B

I am trying to code pathfinding algorithm by using Google Maps Api.
The project is an ASP.Net Web Application and I must get the shortest way between A and B but it is my job not Google Maps'.
I only need to ask Google Maps "Hey Google Is there a direct road between X and Y?" then need boolean type simple answer. (There is always a road between X and Y indirectly so Google Maps can say me the distance of road/path it is acceptable for me too).
My other question is "Is there any library for .Net to not need to use javascript or at least using javascript strings on .cs files not in aspx files?"
Thanks in advance and forgive me about my bad English.
For calculating route between two points you need Google Directions API. That will return you a result json/xml with distance and other details.
The Google Directions API is a service that calculates directions
between locations using an HTTP request. You can search for directions
for several modes of transportation, include transit, driving, walking
or cycling. Directions may specify origins, destinations and waypoints
either as text strings (e.g. "Chicago, IL" or "Darwin, NT, Australia")
or as latitude/longitude coordinates. The Directions API can return
multi-part directions using a series of waypoints
A request would be something like
http://maps.googleapis.com/maps/api/directions/json?origin=Boston,MA&destination=Concord,MA&waypoints=Charlestown,MA|Lexington,MA&sensor=false
You may wanna see this article on Code project: Google Maps API V3 for ASP.NET
For your 2nd part of the question, I am not sure what are you asking. You can use the above API in .Net irrespective of JavaScript

C# display IP location in map

I'm making a simple http server and I want to add a world map feature, that displays client geo location.
I got two questions:
Is there a way to find out lat/lon of an IP address without using sites like ip2location.com?
How can I geographically display a point on an image(world map) with giving lat,lon as an input parameter? is there a formula for that?
Thanks!
Is there a way to find out lat/lon of an IP address without using sites like ip2location.com?
No, unless you create and host your own database.
How can I geographically display a point on an image(world map) with
giving lat,lon as an input parameter? is there a formula for that?
Both Google and Bing Maps provide such functionality. Here's an example with Google Maps which allows you to place markers on a map given their latitude and longitude.
UPDATE:
You could use a Mercator Projection to place a point given latitude and longitude. You may take a look at the following article which explains the technique.

scraping and parsing google data like page rank and more for a domain

I need to scrape/parse some search engines related data for a given domain name(site).
I need
Google Page Rank (only for the domain name, not each pages).
Number of indexed results/pages (google, bing).
Number of Backlinks (google, bing, yahoo).
Traffic Rank (alexa).
Site thumbnail.
Could you provide me some pointers on where can I start? I tried to look around, but I was able to find only Google Ajax API which provides me number of indexed results only. That too expects valid headers which would mean, I have to be on that site, in order to make that work. So, I can't get data for any given domain.
Thanks
Their search API's are intentionally very limited so you will probably need to scrape this data directly from each website.

Categories