How can i get real-time tracking results? - google-maps

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.

Related

Can I prevent it from being line when mapping GPS to Google Maps?

Good morning? I am SeonHo.
The intent of my question is clear.
Does Thingworx has function that prevent some of the GPS values from being received and displayed as a straight line, or does it has function that show the non-straight route?
I will explain more.
picture 1
When you look at the pictures, you can see that some of the routes are straight.
This is because the GPS value is not received at a certain time or period, or the module is turned off.
When you receive the GPS value again or when the module is turned on, the GPS value is clearly different.
So I think it is displayed in a straight line.
I wonder if it has the ability to show the path between two GPS points that are represented by this straight line.
Please introduce
picture that i want make
The important thing is to make straight path the normal route between two GPS points.
It is important to make the path of the red straight line in the picture look like purple.
Is it possible?
Or any suggestions to me?
Help
Thank you.
Location data can be inaccurate, and to force the points to lie on the road, you will need to use a snap-to-roads API
Google Maps snap to roads API
OSRM match service
If you are looking for an end-to-end solution that visualises location data on the road, you can also try the HyperTrack SDK for Android or iOS (not the same as an IoT solution). Location data from automotive drives is automatically snapped to roads. (Disclaimer: I work at HyperTrack.)

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.

Spatio-temporal visualisation with 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!!

Is it possible to customize fusion table( should point my database ) to use fusionTableLayer?

I would like to create a Map by the excel sheet values (.csv files too).
By using FusionTableLayer API, I think it is possible. At first step we could upload the excel values to the database. Then we create a map by the database annotated value. It is very good idea. This is what I wanted. But One thing is problem to me with FusionTableLayer API is google's Drive has been pointed for the fusion table. It means that all my business data will be shared with google. I don't want to be like that.
Instead of Google's drive My database has to be pointed out. From my database I would like to create a map with FusionTableLayer API. I have been searching through internet, I dont find this is possible. But I believe that it is possible. Please guile me to specify the way to trigger it out ?
Regards,
ArunRaj.
If you want to use your own database, then you cannot use the Fusion Table API as it's meant for the Google Infrastructure. You will have to find another API to take care of this.
One workaround I can suggest to you is to parse points you have as drawing objects for your map. So for each point, create new google.maps.Marker with the respective coordinates. Each region can be denoted with google.maps.Polygon, and lines with google.maps.Polyline. There's plenty more you can do, but it's just a bit more work, and possibly less secure depending on your implementation. Furthermore, you can also add info windows to each of those areas using the Google Maps API by attaching respective listeners to those objects created.
Hope this helps!