is it possible to request Google Map tiles using something other than Lat/Long?
I'd like to pass the x and y in as web mercator values. I'm not using the Google Maps API and this will be a custom tiled layer where the map object is in web mercator. I can't use the standard Google Maps URL because that only accepts lat/long values, which won't draw properly on my web mercator map.
Thanks for any assistance.
Ed
You can't use the Google Map tiles unless you use the Google Maps API. From the Terms of Use at https://developers.google.com/maps/terms :
10.1.1. General Restrictions.
(a) No Access to Maps API(s) except through the Service. You must not access or use the Maps API(s) or any Content through any technology or means other than those provided in the Service, or through other explicitly authorized means Google may designate. For example, you must not access map tiles or imagery through interfaces or channels (including undocumented Google interfaces) other than the Maps API(s).
Related
I have my own tile server and like to use tmapview component
Is it possible to use tmapview with my own tile server ??
like tileoverlay
thanks
TMapView is specifically for maps via the Google Maps API, which means it is tied specifically to Google. From the TMapView documentation (emphasis added):
To run an application on Android with TMapView, you need to acquire an API-Key for Google Maps API.
So no, you cannot use it with your own server.
We need to get Bing Maps to one of our apps in Power Apps. Whenever we enter a URL of the format on Power Apps http://dev.virtualearth.net/REST/v1/Imagery/Map/imagerySet/centerPoint/zoomLevel?mapSize=mapSize&pushpin=pushpin&mapLayer=mapLayer&format=format&mapMetadata=mapMetadata&key=BingMapsKey, we get an error stating that the Swagger file cannot be found. We tried enter the URL by going to Connections->Manage Custom Connector-> Create Custom Connector->Use an OpenAPI Url
So far we've tried connecting several Bing Map API endpoints, we've read through the docs and are unable to find a Swagger definition file on Bing's API. Do we have to create our own Swagger for this API and is there a template we can follow?
Passing in the URL you provided won't work as it returns an error. You would need to pass in a URL that returns a response. That said, the response structure of Bing Maps REST services is very complicated and you would need to use several different requests to see the full response object. There is no single way to return the complete JSON structure of the REST services as they vary depending on which end point you use. The Bing Maps REST Service JSON schema is documented here: https://msdn.microsoft.com/en-us/library/jj870778.aspx
That said, if you are using .NET, take a look at the official .NET library for the Bing Maps REST services: https://github.com/Microsoft/BingMapsRESTToolkit/
Is it possible to open map file at local computer (offline) using google map API? If yes, How?
I have programed an application in delphi. It shows the company cars on the map. but now we need the map to be offline. I have *.map file and may be I can find other map file from internet. I have not a point where to start at all. What do I have to do? tnx.
The google maps works by transferring data asynchronously from Google's servers to a user's computer. So if you are offline there's no way to communicate with Google's servers and retrieve such info. Even if you accomplish store the cached google maps and display offline you must follow the Google Maps API Terms of Service.
(b) No Pre-Fetching, Caching, or Storage of Content. You must not
pre-fetch, cache, or store any Content, except that you may store: (i)
limited amounts of Content for the purpose of improving the
performance of your Maps API Implementation if you do so temporarily,
securely, and in a manner that does not permit use of the Content
outside of the Service; and (ii) any content identifier or key that
the Maps APIs Documentation specifically permits you to store. For
example, you must not use the Content to create an independent
database of "places" or other local listings information.
As alternative you can use the Google Static Maps API V2 service you can retrieve a image, which can be saved to a file, basically you need build a URI like so
http://maps.google.com/maps/api/staticmap?center=40.714728,-73.998672&zoom=12&size=400x400&sensor=false
And the using a GET you save the response in a file, check this article for a delphi sample Using Google maps (Static Maps) without TWebBrowser
Google maps API interact with google servers, online. There is no way to use maps API's. If its a web interface you can try looking at HTML5 projects which have ported maps offline with co-ordinate resolution.
Here is your FAQ related to storing google maps data offline
What I suggested about HTML5 projects, you can take a look at this.
This combined with offline html5 offline data caching should be a good solution for your problem.
I would like to know if someone has got documentation about the Google Maps API, I'm only looking for the traffic live information I would like to implement it on my iOS application.
Does such an API exist?
I don't think Google offers a standlone traffic API as of now. However there are a couple options.
Render the Google Maps element in a WebView and use the Google JavaScript API to enable the traffic layer. The downside of this approach is that the UX likely wont be as nice as native programming. The upside is less coding.
http://code.google.com/apis/maps/documentation/javascript/
http://code.google.com/apis/maps/documentation/javascript/reference.html#TrafficLayer
Call another traffic provider's REST API and overlay on top of the native iOS map component. This overlay is pretty straightforward through code if you get a KML response. The two I know of are MapQuest (yes, they are still around!) and Yahoo (though their API is in transition now).
http://www.mapquestapi.com/traffic/
http://developer.yahoo.com/traffic/rest/V1/index.html
Does Google offer a RESTful API where I can pass it a city name (or zip) and it returns the longitude & latitude.
I know how to do this with using the Google Maps API, but I really don't want to have my users download the huge 200k Google Maps API solely so that I can geocode a location.
Does anyone know of a URL based (REST) city/zip to longitude & latitude API?
Since geocoding this information then kicks off multiple other processes, doing this first step is of critical importance to have it perform quickly b/c its a bottleneck right now using the Google Maps API b/c of the huge download and JavaScript loadup.
Yahoo PlaceFinder is a new service offered by Yahoo! that provides services for converting addresses (including city names) into latitude / longitude pairs. The service is also capable of doing the opposite (converting coordinates into an address).
Unlike Google's Geocoding API the TOS for Yahoo PlaceFinder do not forbid using the data outside of their maps API.
You could use geonames.org web sevices (or download the server)
http://www.geonames.org/export/reverse-geocoding.html
Also keep in mind that you will likely run over your quotas for the day if you have heavy traffic using the direct HTTP call method. Google limits usage based on IP address, so using the client side code will greatly increase the number of geocode lookups you can do per day since they'll be associated with user's computers rather than your server(s).
$.get("http://ipinfo.io", function(response) {
console.log(response.city, response.country);
}, "jsonp");
Here's a more detailed JSFiddle example that also prints out the full response information, so you can see all of the available details: http://jsfiddle.net/zK5FN/2/