I am looking for a solution for cloudmade that will let me click a point on the map and set a radius for a circle. I was wanting to get the cleanest interface to do this. I looked on the cloudmade forums and the devs said that they have not put this into the API. I am looking for something like this page. I would use google maps but we are using it for internal use and do not have the 10,000 dollars to pay for google map license.
Thanks in advance.
My solution was to get the point and use MySQL lat long to do the calculations.
Related
Once again, I'm trying to deal with something not really well documented on Google Maps API.
I'm doing a small webapp which would require to be able to map indoor areas BUT I've to keep them private.
For now, I don't find any informations related to this question.
I've found many quite similar questions on stackoverflow which seems to feet my needs regarding the title, BUT once I read the question, everything is related to Android or IOS however, I'm looking to do this on a regular WebPlatform using Maps APIs provided for this plateform.
If anyone as a hint, it will really help so, thanks in advance.
The documentation for custom StreetViews you find on https://developers.google.com/maps/documentation/javascript/streetview#CustomStreetView
Keeping the images private is not hard to achieve, the images are loaded directly by the client, so you may e.g. use a serverside script that handles the requests and for example checks for a valid session before it delivers the images.
According to the GoogleMaps community forum (https://support.google.com/maps/thread/124604237/how-can-i-make-indoor-maps-private?hl=en) it is not possible to render google indoor maps private. One solution could be using mapspeople api which uses google maps and draws indoor maps on a top layer, or resort to mapwize which utilizes OpenStreetMaps as a base map to draw indoor maps layers on.
https://www.mapspeople.com/mapsindoors/
https://www.mapwize.io/
note that mapspeople requires payment, while mapwize has a very basic free version.
I want user to be able to enter source/destination and take a virtual tour of the route.
PHP is my preferred solution. I am not sure where to start from. I do not have much experience with Google map 3D APIs so need some pointers.
I need something that is similar to Google maps's Helicopter view feature. Gives a bird's eye tour of your route.
Thanks in advance!
You will want to use Javascript, which powers the Google Earth API
Check out the examples at the code playground, especially how to create a line string (for your route) and how to move the camera
I'm looking for a solution to be able determine landscape type by a given coordinate, for example check if current position is water/forest/town/road and so on. I found google.maps.MapTypeStyleElementType object specification in the Google Maps specification, but not sure if it could help me or not.
Probably, there are some another Maps API with such functioality? Or maybe I should refer to the different types of offline maps?
Nope, the link you send is just for styling the proper features, not to tell which feature is at a given coordinate. If you are interested in landscape, then Corine Land Cover is the thing you are looking for. It describes the types of biotops like forest, water, but also land use - meadow, field, buildings etc. However, I don't know if there is such an online service where you could query particular coordinates. Other solution for you would be to import these GIS layers (they are freely available) to your own gis map server. Maybe this is partially solved as there are e.g. projects how to incorporate these into openstreetmap.
Well not quite, but you could get close to what you're looking for by using the Google Reverse Geocoder and the Google Places API
Google Reverse Geocoding
http://code.google.com/apis/maps/documentation/geocoding/#ReverseGeocoding
If you send the service a geocode it will send back an address type and/or one of several adress components http://code.google.com/apis/maps/documentation/geocoding/#Types
Google Places API
http://code.google.com/apis/maps/documentation/places/
You could use the Google places API to search for for what's near. If the geocode is in the middle of the lake, the Places API may return something like "Lake Michigan" and then you'd know the terrain obviously.
I was wondering how to integrate one of 'My maps' into a site. I know there's an embed option but the idea was not only using all the places I added there but also make them searchable (by using a search box I guess).
Thanks in advance
Update: Found this but I want to make it work with 'My maps'. Ideas?
I would suggest using the Google Maps API. It offers much more flexibility than MyMaps.
Google Maps API Family: http://code.google.com/apis/maps/index.html
In particular, you might be interested in: http://code.google.com/apis/maps/documentation/javascript/
Using it requires a bit of knowledge of JavaScript, but it isn't too hard.
Developer's guide: http://code.google.com/apis/maps/documentation/javascript/basics.html
Tutorial: http://code.google.com/apis/maps/documentation/javascript/tutorial.html
Hope this helps.
You have to do bit of server side scripting to make them searchable
First thing, is you need to define your centre of the map. Then add markers/location to the map and store their lat/lng values server side. When someone enters postcode/zip you need to use Geocode Google Maps API service to get lat/lng of the value entered, use it as a center, and then calculate distance using haversine formula to show nearest locations.
Geocode API link
Haversine formula link
Thanks
I would like to know if it is possible to change the way the itinerary calculation algorithm works in the Google Maps API (or Bing Maps). Basically, I'd like to add options, like for example "shortest route" or "avoid highways and national roads".
I haven't found anything in the API that might manage the road's cost, so I think it's not possible but maybe someone's got an idea of a way to do that?
There is no way to modify the pathfinder algorithm beyond the avoidHighways and avoidTolls options. See here for documentation:
http://code.google.com/apis/maps/documentation/javascript/reference.html#DirectionsRequest
Another method would be to specify provideRouteAlternatives and figure out which of these routes is best according to your own heuristic.