I'm trying to build an easy to use map system for the applications we develop at work. I started using Google Maps but I have to abandon that because of the lack of SSL support. While Google Maps API Premier has SSL support, we can't afford the 10k a year fee. I'm considering using Mapstraction so that in future, if I need to change providers it's much less of a hassle. However, what I'm primarily interested in, calculating the driving distance between two points, seems ti have no documentation for doing with Mapstration. Their website says that driving directions are available, but the API for this appears to be poorly documented. Does anyone know how to do this?
Keep an eye on the mapstraction mailing list as this feature is being implemented in v2 soon.
Related
This may be very obvious to others but I am struggling with how to achieve this and can't seem to find it in the docs or using Google, this may be down to a badly worded query.
What I am trying to do is create a Route on a map and track my progress on it as I navigate and like the navigate function in google maps send a notification of the turn when within a x number of meters, similar to voice in google maps but I just want to get the text.
Is this possible with the Javascript API v3 out of the box? If so can someone point me to the relevant documentation or tutorials
if not out of the box, can someone suggest a design pattern or some pseudo code to do this.
What I am trying to do at the moment is.
Get my routes in Steps ( gps & text )
Get the next Step ( gps & text )
When current location is within 10m notify
when current location is past notify to update to next step & repeat
This feels like I am oversimplifying it and I am also struggling with how to correctly get the distance to next step. I know I can get the distance between 2 coordinates but is the a more accurate way to do so as to avoid getting an "as the crow fly's" distance?
I am trying to do this with Google maps api v3 in an Ionic AP using the Cordova GeoLocation plugin
Again Apologies if this is obvious to anyone else but I am struggling to find any relevant examples. If for some reason this is not easily done with google maps I am open to other open source or free frameworks that I can access via javascript
There is no out of the box solution. You would have to use both the Maps API and the Directions API. Directions returns routes in legs so you can use that to determine each step and get the user's location via Geolocation.
However, this might be against Terms of Service
No Navigation, Autonomous Vehicle Control, or Enterprise
Applications. You must not use the Service or Content with any
products, systems, or applications for or in connection with any of
the following:
(i) real-time navigation or route guidance, including but not limited
to turn-by-turn route guidance that is synchronized to the position of
a user's sensor-enabled device.
I am looking for a way to extract built in property boundary data from the Google API to know where to highlight areas for information needs.
It's easy enough drawing a polygon, but I want to know where to draw it in a more automated fashion. Perhaps similar to Geocoding for extracting an address location, except the geocoder only provides a central coordinate and a bounding box (for screen navigation) unfortunately.
Does Google provide this property data in some form?
Thanks
Having looked through the Maps APIs fairly extensively and no one suggesting otherwise. I think it's pretty conclusive Google Maps does not provide property boundaries.
The best way to go is to look for a service that does have the data to integrate into Maps, but likely costs money.
As an example these may be:
Your local government's land services
RPData.com - http://www.rpdata.com/residential_property_information/residential_property_information.html
ReportAllUSA.com (if you are American) - http://reportallusa.com/
None of these are guaranteed, looking into them myself, but may also be different from person to person depending on costs. If I find a free one, I'll give a shout.
For anyone looking to implement this on Australian Region.
State & Local councils have open data free for usage.
I am working with Brisbane, QLD Australia:
For Brisbane: https://www.data.brisbane.qld.gov.au/data/dataset?q=parcel
For QLD: https://www.data.qld.gov.au/dataset?q=parcel
P.S parcel dataset contains information about individual Property Listings. It does have a learning curve & takes sometime to use open data.
I need a simple visualization for events occurring over the world -- a 2d image of a world map, and a way to display visual alarms when events happen at a [lat, lng].
This is not core functionality. I'm willing to look into libraries or engines, but I don't want to add a huge learning overhead.
What's the simplest way of doing it?
I've had good experiences with google's visualization api. They have a map that will allow you to do what your looking for. It's also pretty well documented and plenty of resources online.
You can take a look at their maps documentation here: https://developers.google.com/chart/interactive/docs/gallery/map
Please before you vote this down consider the question as I have not been able to conceptualize a better way or place to ask it:
I have experimented adequately with google maps to understand the overall structure. Making requests, creating custom flags, etc. It is all quite easy and very similar the jCharts library.
Now, google obviously has something that is not available: a map from a certain date in the past. I do not need a full day by day iteration, but even every 6 months or so would be huge.
Is this possible? Has anyone else experimented with this?
Is the only option to save results locally and reinvent the google maps wheel?
Thank you very much
Google Earth has this functionality: http://www.google.com/earth/explore/showcase/historical.html
Travel back in time with Historical Imagery in Google Earth. View your neighborhood, home town, and other familiar places to see how they have changed over time.
As for Google maps:
A discussion suggesting the use of older URLs to obtain the old satellite images.
This example supposedly pulls older images if they're available. Doesn't work that well for me.
This search on the Google groups might help but I see numerous posts about it not being officially available.
There is no official service. These posts hint at ways to go back a
short while, under some circumstances.
http://groups.google.com/group/google-maps-api/search?group=google-maps-api&q=old+satellite
Note the comments about seeing if it is within the terms - probably
not - and the risk of getting (temporarily) blocked.
I have full fledged integration of google maps version 2 in my web application, with features like get directions, cluster markers, tabbed info window, context menu(right click). The implementation has very poor design which is causing some problem, So now I need to revamp the core implementation to better design. I was thinking of upgrading to version 3 of google maps API. Please suggest, if that's a good thing to do and my all features will be running fine(or I will get replacement for all the features mentioned) in less time. Or should I stick to the version 2 of the google maps API?
I recommend you upgrade to v3. I upgraded my site a few months ago (and blogged about the experience). A few things to keep in mind:
No more API key.
The marker and info window API has changed, for the better.
No more AJAX helper stuff. If you are using GXMLHttp, you will need to swap over to a new AJAX wrapper (Jquery, mootools etc).
Check your lat/lngs are in the right order. GPoint takes x and y (longitude and latitude). v3 has a latlng object, so your params might be backwards.
Styled maps - You will be able to customize your color scheme in v3.
Don't think you can turn on the Google earth plugin in a single line of code like you could in v2 (not 100% on this, so please correct me if I am wrong).
Once you are done, you will be happy to make the change. Pages load faster, zooming is smoother (polyines scale as you zoom instead of disappearing) and the mobile experience is much better.