google maps api - customizing maps with local database [closed] - google-maps

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am new to google maps and now I have a requirement to make use of it to provide a presentation to client. I have never worked on maps api or used the developer kit, so hopefully I make sense in what I am asking here.
Requirement: I have generated unique code more like UK POST CODE for each of my distribution center. I have identified LatLng for each of them and created a database.
We use UK Postcode for navigation, location and etc. This works completely on the database of address provided by royal mail to google. if I have my own database with a set of custom postcode, will i be able to work on maps using my database
I want to first mark these distribution center on the map and give a demo like distance, navigation between two distribution center working completely offline. All distribution center are within a very small geographical radius as this is just a demo.
So, is it possible to achieve this or any alternative will be very helpful. If this is a duplicate question could you point me to relevant link.
Thanks in advance
/SR

if I have my own database with a set of custom postcode, will i be able to work on maps using my database
Of course you can, Google Maps would be useless if you couldn't work with your own markers, or if you can't add / remove / update / delete them in DB. Please read the well-documented doc to learn how to deal with it.
I want to first mark these distribution center on the map and give a demo like distance, navigation between two distribution center working completely offline
You will have to use DistanceMatrix API to calculate distance between two or more points. But you NEED an Internet connexion because you'll send your information to Google and it will send you back the expected result, so you need to be online - no other way.

Completely offline? I would say: no chance. Beside that you would violate Googles TOS.

Related

SAS Google Map Generator, safe on secure data? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to use the SAS Google Map Generator but I am not sure if I can on proprietary data. I don't want any of the data to be placed anywhere but my own server, even when interacting with Google.
Ideally what I want is to download the map of my choice (state of Wyoming for example) and all of the locations of that area are in a zip file or shape file for me to be able to pin the dataset locations onto, in my own computer. I was reading this.
But it seems a bit confusing to me. Has anyone used it and know that I wouldn't be sending any of my information back to Google?
I've never done this before so I just want to be sure I won't get in trouble for any data leaks.
Thanks!
If you're using the Google Maps API, as it seems you are, then yes, you are sending some information to Google - namely, the center of the map that you're displaying, plus possibly other information depending on what exactly you are displaying.
If you want to do everything client-side, the easiest way is likely to use SAS's built-in map files. This won't display a Google Maps style map, and will give up quite a bit of detail, but it will allow you to display the state borders, counties, and major cities.
You also could use OpenStreetMaps or a similar product, which is locally downloadable more or less as you describe. However, you wouldn't be able to use the Google Maps API; you'd have to do the projecting in SAS still.

Can I use HTML geolocation to update a website with where I am located? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Instead of the the location presented is based on the user I want it to update automatically based on where I am.
I could obviously hard-code it but I want it to be automated. I travel quite a bit: when I am in Egypt I want it to say something like "working in Egypt" or when I am home in NYC "working at homebase" etc.
I am not sure how to go about this, I am assuming it can be done with HTML5 and some more but I may be wrong any suggestions welcome.
There are a lot of ways, but they all have in common you have to send your location to somewhere, and that somewhere has to inform that location to your website visitors (or the place where you want to display it).
You can use HTML5 location api to determine your approximate location. For example, you set up a page (not the index page, but one you can authenticate to) that whenever you visit it, you inform your location to it. That's done with a simple
navigator.geolocation.getCurrentPosition(function (location) {
console.log(location);
});
For the second step, you have several ways to go:
Use a backend server to persist that data in somewhere that's not just your notebook. That server can, in turn, store that location in a Database. Then, anyone visiting your website public page could see from where did you updated your location the last time.
Instead of Databases, you can also use websockets to just relay your updates to whomever is visiting your website at a given moment. But that might be just too far fetched for what you need to do.
Use a webservice API to inform others about your location. Automated foursquare checkins? Tweets, Facebook statuses? All of those approaches is unique to the given API, but most social networks allow you to build simple apps to do that.
TL / DR
Yes, you can use HTML5 to guess your approximate location. Nope, with HTML5 alone you can't tell other people where you are.

Googlemap Geocoding legal constraint [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I was reading up the legal stuffs about Google Map and came across a post which pointed out this regulation:
10.12 use or display the Content without a corresponding Google map, unless you are explicitly permitted to do so in the Maps APIs Documentation, the Street View API Documentation, or through written permission from Google (for example, you must not use geocodes obtained through the Service except in conjunction with a Google map, but the Street View API Documentation explicitly permits you to display Street View imagery without a corresponding Google map); or...
However, I also bump into this very nice tutorial on displaying addresses that is within a specific radius of a targeted location:
http://stefanzvonar.com/2012/06/30/setting-up-google-maps-for-asp-net-and-sql-server-with-google-maps-api-v3/
In this tutorial, the database actually stores the Lat Long of an address which is crucial for this feature to work. Presumably, these Lat Long information may also be derived from the help of Google Map. In such scenario, is there a violation occurring? I am not sure if it relates to the regulation state above.
This is a grey area. You are not allowed to store actual data obtained from Google
2. Restrictions on Use
But it is suggested that if the results of geocoding is displayed on a map and the marker moved to the exact location the resulting coordinates are yours to store (I am not a lawyer).
The other option is to obtain to obtain the coordinates from another source eg Geonames

Best way to submit location data to Google for indexing [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
My site has a large number of local service providers and their location information.
I'm assuming this is the sort of thing Google would like to index in their Maps or Places product since I see their map widget come up in related search results.
Google Places allows you to do a bulk upload but it has a verification process designed for individual business owners where they call or mail you something.
I've looked a bit into KML or GeoRSS. Has anyone had success using these methods to get Google to index location data that appears in their maps search results?
Have you reviewed the Google webmaster tools documentation for sitemaps?
http://www.google.com/support/webmasters/bin/answer.py?answer=94555
Also:
http://code.google.com/apis/kml/documentation/kmlSearch.html
These cover how to submit data for Maps, Search and Earth.
At first I thought KML was the way to go, but this appears to be what I was looking for:
http://maps.google.com/help/maps/richsnippetslocal/

Openlayers commercial application: licensing issues? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 7 years ago.
Improve this question
I am planning on creating a commercial fleet/asset tracking web app, but got discouraged when I found our about the high price Google and Microsoft charge to use their services in a commercial setting. I found Openlayers, and it claims to be free, so I am wondering if anyone has had experience using it commercially?
I looks like the use of the API is free, but does that include the maps as well? Openlayers also lets you use Google as the mapping provider, but if I do that, would I be breaking Google's TOS since it is commercial?
I apologize if this isn't the correct place to ask such a question as it isn't directly related to a programming problem, but I can't find a definitive answer anywhere else and I imagine someone on SO has had experience creating a commercial mapping application.
OpenLayers has no data - it is an opensource mapping API that can be used with many different data sources.
To be free of all data licensing concerns use OSM data rather than Google - http://www.openstreetmap.org/ with OpenLayers. See some examples at http://wiki.openstreetmap.org/wiki/OpenLayers#Examples
Depending on usage, you'll probably want to provide your own map server rather than rely on (for example) a free OSM one. These can provide the data (including map tiles) that OpenLayers uses to draw its maps.
UMN MapServer and GeoServer are popular. I've found MapServer combined with OpenLayuers a powerful combination.
I've never used GeoServer, but I think it requires serverside Java. And there are other options.