How to plot latitude and longitude using Google Geocoder webservice? - asp.net

How do I plot latitude and logitude using Google Geocoder webservice in asp.net?

There is a full tutorial on how to use Google maps in java script, so if you are using asp.net to display a web page, it isn't too hard:
https://developers.google.com/maps/documentation/javascript/tutorial
If you are trying to plot lat and long on to a custom made maps, you would have to deal with the fact that the earth is basically a sphere, and do 3D modeling. Its quite math intensive, and this probably isn't the correct place for this question.

Related

How to determine the transportation method from the history of latitude and longitude using Google Map API

â– Prerequisites
The history of latitude, longitude, and elevation at regular intervals is stored in the DB.
We are investigating a method to determine the means of transportation from the history of latitude and longitude using Google Map API.
We are wondering if any of you know of any good solutions.
If you have any good ideas for methods other than Google Map API, we would appreciate it if you could share them with us.
Thank you.
We were investigating overview of Google Map API already.
But we don't have ideal to fix our problem.

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. 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.
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? 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.
Any help would be appreciated. Thanks in advance.
Seaton
The Geocoding API may only be used in conjunction with a Google map; 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.
Source: https://developers.google.com/maps/documentation/geocoding/#Limits
yes, you can use the Google Geocoding API to do address lookups (in this case postcodes). 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.

google maps distance matrix

I am using the Google Distance Matrix to determine the distance between the user and our centres.
This works fine, however the documentation states:
"Use of the Distance Matrix API must relate to the display of information on a Google Map; for example, to determine origin-destination pairs that fall within a specific driving time from one another, before requesting and displaying those destinations on a map. Use of the service in an application that doesn't display a Google map is prohibited."
But I am unsure how to "request and display the destinations on a map"
Is it possible to show the map in my application with the directions? If so where do I start? I have been looking but have been unsuccessful so must be searching for the wrong thing.
Microsoft Visual Studio 2012
ASPX.NET Application (VB)
Try using the google maps Image API
https://developers.google.com/maps/documentation/imageapis/

Nokia Map Tiles REST API

I have an account for Nokia Maps API but am wondering what URL I should use to request tiles through the API correctly? I am using the Leaflet maps API and my URL string looks like this:
http://3.maptile.lbs.ovi.com/maptiler/v2/maptile/newest/normal.day/{z}/{x}/{y}/256/png8?app_id=XXX&token=XXX
It works, but I don't believe I am using the API correctly - I just stole the first part of the URL (http://3.maptile.lbs.ovi.com/maptiler/v2/maptile/newest/normal.day) from the Network tab of dev tools when I checked out Nokia maps in my browser.
In the documentation it tells me I can request based on lat, long and zoom, but not based on X and Y.
Is anybody familiar with Nokia Maps API?
Regarding the original question I'm guessing you have acquired credentials for the Map Image API: http://developer.here.net/docs/map_image/index.html There are a series of interactive examples available, which explain how to get back a static map image using latitude and longitude such as this one here: http://developer.here.net/apiexplorer/examples/api-for-rest/getting-started/basic-map-wh.html All the urls for the Map image API start with http://m.nok.it
Using URLs for the map tiles from the http://here.com website isn't the same service, it isn't an official API (hence the reason it is undocumented) and the URLs could be changed without notice.
Updated
HERE now offers three web-based Maps APIs, and since last year a TMS (Tile Map Service) a.k.a. Map Tile API, which is what I think you are after is now publicly available.
As noted by Luciano Issoe, the correct URLs for the Map Tile API are now publically documented see: https://developer.here.com/rest-apis/documentation/enterprise-map-tile
Alternatively, if you want to use an interactive map service with Nokia's mapping data, your best bet would be to use the Maps API for Javascript described here:
http://developer.here.net/docs/maps_js/index.html
It seems that it´s a documented service now: https://developer.here.com/rest-apis/documentation/enterprise-map-tile
To retrieve a map covering a specific area using the Map Image API, add two points of interest to the map for the top right and bottom left corner and then use the nomrk to make the POIs invisible:
http://m.nok.it/?w=512&poi=52.6764,13.7636,52.351,13.0185&nomrk

Google Maps Distance Calculator api

I found this cool feature in google map that allows to calculate distance between two points of interest. It doesn't simple calculate the linear distance petween points but allows to draw on the Map the route on the map. Have you ever used it? Do you know where i can find the API documentation?
Google's Maps API is publicly available. You might be looking for DistanceMatrix. You could then use Polyline to create the route, and DrawingManager to draw it.

Resources