Spatio-temporal visualisation with google maps - google-maps

I have Call Detailed Records(CDR) data which in its raw form has timestamp, latitude and longitude. I have summarized this data to show where a user was on a particular day. What I have now are three fields: Begin(Date),End(Date) and Lat/Lon. Worth noting is that intervals are irregular and Lat/Lon can repeat. My objective is to have a visualization/animation with the following capabilities. Adjustable speed when viewing time so that I can see when a user returns to the same place. It should look something like this or this. I have searched endlessly and cant seem to find pointers to resources for use in Google maps or similar platforms. Now I have a kml file for each user but when I view it in Google Earth, the effects are not what I'm looking for. Problems include speed,its too fast and for some reason I cant control the start date of the animation. Any help will be appreciated.

CanvasLayer.js Library is what you have to integrate with your app code in order to get the sort of animated data on your Map. This library integrates Google Maps and Web GL behind the scenes and you just have to basic code for initialization and add path of your text/kml file, Rest of the things are automated.
Please follow this link to know about the code implementation and also some sample examples.
Hope this would Help!!

Related

How to generate GIS Maps without any browser specific library?

I need to generate a GIS map showing some points and polygons. This map generation process has to run in the background so that every day at a certain time of the day a map is made and stored at a certain location in the file system.
I don't think leaflet can be used for this as it runs on the browser.
Not sure how will this happen in QGIS also....any light in this direction will be helpful.
My requirement is to generate a HTML report which contains a map. I cannot do it on the browser because the user will not use the browser and want the report to be inn his mailbox every day automatically.
I will be using node js to generate HTML.
How can this be achieved? Please save my life.
Thanks
I suggest you use something like phantom.js to perform what is essentially a screen capture of the map you generate in a web page that is 'displayed' on a headless, off-screen web page. What sort of map server you use to generate the maps is up to you; but that would let you capture a browser view of the map and re-package it in a PDF or an image that is embedded in an email.
Make that PDF or image a GeoPDF or a GeoTIFF or example and the result would retain some geospatial aspects instead of being a dumb screen capture.
I would use something capable of delivering a map tiling service (like wms) which you can then query server-side and piece together the tiles. I've had good luck with geoserver (http://geoserver.org/) but there are other solutions as well. I'm not sure if you can can query Google maps api or Open Street Map like this. The nice thing about your own map server is that you can completely define the map you want on it in one place. Aside from this, I would browse the npm repository to see if anyone has tackled this problem before.

Google Maps API: How to calculate the building surface area?

In google maps, we can see a building footprint displayed. But how can we get this building outlines details via the Google Maps API? I know you have an easy algorithm to calculate a surface area in m2 via maps, but there you have to put in your data points manually.
Is there a functionality in the API where you can get the building outline details?
I've spend some time looking for the functionality in the API, not finding it... If someone could give me a hint if this functionality exists or not, I know if I have to focus on image-processing :)
Thanks in advance!
Here is similar question on SO. Hope it will help.
EDIT
There is also another way of getting building coordinates. You can use data extracted from OSM http://www.openstreetmap.org.
Select area and export .osm file.
The file has xml structure. Inside you will find nodes with associated coordinates. Rest of the file usually contains objects which could be tagged as building. Objects are described by set of references to nodes so you will have to follow the references and find out coordinates.

Displaying 3D routes in Google maps

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

Mapping a set of ZIP codes

I'm working on a delivery service that only delivers within certain ZIP codes (probably, but not necessarily, all contiguous). Given a list of ZIPs, how do I get a map on which those ZIPs' areas are highlighted or outlined?
http://www.udsmapper.org/
This should be exactly what you need.. for personal/non-commercial use only though...
If you have a list of zip codes you can even paste them into the system and they'll automatically map!
Here is their user guide too:
http://www.udsmapper.org/docs/NEW_Instructions_Creating_Service_Area_Map_10102014.pdf
Here are some links of some helpful sites:
http://benfry.com/zipdecode/
http://maps.huge.info/
http://maps.huge.info/blog/boundary_maps/
http://www.usnaviguide.com/zip.htm
I didn't spend very much time searching these sites, but it didn't look like they were sharing their databases. That's what you are going to need... A database that can give you the lat/long coordinate boundary of the zip code area. I don't believe neither Google nor Bing offer a service that does that conversion for you.
Once you are able to do that conversion, from zip code to lat/long boundary, it should be pretty straight forward in both the Bing maps control and the Google api. If you have more specific questions on the actual implementation, then just leave me a comment.

How can i get real-time tracking results?

We are trying to achieve is to collect fake gps tracks on some route without going in real time.
We first realized by using maps.google.com we can download kml file from any direction between designated points.But these points depend on shape of the road where if we go through a bridge,kml file comes within only begin and end points of it.(that's Directions Service)
I know this task sounds some lazy,but if there is a way to do this with Google or another service or by implementing some code on given route,we have to try it.
Any ideas ?
I found solution by using GIS desktop tool where points can be added manually.
By saving table as .kml,I achieved to collect gps route.It may not look GPS track alike,but it was to easy to handle the situation.