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

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.

Related

Choosing tools for animated data visualisation on a google map(or any other map provider).

Forgive the vague nature of the query. I wish to make an application to visualize some geographic data on a map. To be clear, I have some lat / long locations in a txt file. I can figure out how to draw them on a map using OpenLayers or the Google Maps API directly. However, I have some other data files, with an attribute related to each point. I would like to iterate over those files , read in the point attributes, and update the map (changing the radius of the respective point) as I read the files. My end goal, is something like what is done here World Development Indicator .
If someone could explain to me how this is done, or point me to a set of tutorials, I would highly appreciate it. Thank You.
I think you can add all the points as shape circles, and store the references in some kind of array or list.
Then you can find the circle and change its radius by the setRadius(double) function.

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!

Google Maps API Countries and Regions as Polygons

I've got a question about highlighting areas on Google map. I know how to place polygons on map. It's pretty simple and straghtforward. The problem is I don't have access to such data and I don't know any source of it. From my database I get lat/lon for a specific place and I need to have data about their borders. Do you know any free or paid database that contains such polygons data for all countries/regions in the world?
Thanks in advance.
http://www.gelib.com/world-borders.htm
There is a .kml file at this location you can use as a starting point.
With this tool you can create any polygon you like:
http://www.birdtheme.org/useful/googletool.html

google maps multiple line segments

this question is kind-of programming related but not exactly - see how we go...
I am trying to view a trip i have made using a gps tracking device onto google maps as one continuous line, however, when i upload the KML file onto google maps it is arbitrarily broken into about 7 different segments.
The trip was made in one go and when shown in google earth it is shown as one continuous line.
I have inspected the KML file and all coordinates are contained within the same single linestring element.
Does anyone know why this is occuring?
Regards
Grant.
It looks like other people have experienced the same problem that you're having, but I was unable to find a solution. It seems that this is just a bug in the Google Maps KML parser.
If you don't mind creating your own map with the Google Maps API, you should be able to parse the file with no problem. There are also some sites like this one which will create a map from your KML file.