google maps ruler - google-maps

does someone know how can i add the distance ruler to my api map, or any other quick way to se the distance bwtween 2 direct points?

You could try some of the js extensions available online. For example:
http://code.google.com/p/earth-api-utility-library/source/browse/trunk/extensions/examples/ruler.html?r=41

I'm not familiar with the Google Maps API, but given latitude and longitude of any two points you can use a great circle calculation to determine the distance between them.

Related

Google Maps: Draw polygon surrounding random locations

I have a set of random locations. The location set will keep changing. I would like to draw a polygon surrounding these locations.
Can this be done in Google Maps and how? The map will be displayed on a website only, no mobile api required.
It's called a convex hull. Here:
http://www.geocodezip.com/v3_map-markers_convexhull.asp
I would cite the code but it belongs to #geocodezip who is the authority on google maps and runs an excellent site of examples. I suggest you check it out.

How can I make bend in google maps polyline?

Is it possible to make a bend in Google maps polyline.
Sample Example is here
I want to make a line over the railway and not a straight line.
Is it feasible?
Yes of course, you only have to look at the documentation of google maps, there are many examples, you just have to replace the latitude and longitude Google Maps API

Matching coordinates on Google Maps to planetary.js

I am looking to migrate from Google Maps to planetary.js and I need to move a bunch of markers. Does anyone know how Google Maps coordinates match to coordinates in planetary.js?
If I have a Google Maps location such as "-33.654437, 151.188164" - what does this map to in planetary.js?
Those should be latitude/longitude coordinates, and you can be converted into x/y coordinates on the planet's projection via D3's projection. The projection is exposed in Planetary.js as planet.projection.
As it seems they are the same, switching the x and y coordinate works for me.
Google / Openstreetmap: "-33.654437, 151.188164"
Planetary.js: (151.188164, -33.654437)

List of junctions

I would like to get a list of junctions' coordinates in a radius around a given coordinate. I figured there should be a way to extract the coordinates of wherever two roads meet, however I can't find it. Please advise!
That functionality is not available in the Google Maps API v3.

How to retrieve a static map showing city or municipality boundaries

I'm not sure where to start looking in the documentation, but I'm trying to load map images of cities with their boundaries outlined.
Like this...
Any help getting started would be greatly appreciated, I'm pretty new to the maps api.
Thanks
There is currently no way to request a map with boundaries automatically rendered on it. Your best bet is to pull the polygon information from another system and render using an encoded polyline if you're using the Static Map API or regular overlays in the JavaScript API.
Google Static Map API
Here it is
here, some links to help you:
Geographical boundaries of states/provinces -> Google Maps Polygon
EInsert extension
Boundary Draw - Google Map Application
Getting neighbourhood boundaries from Google Maps API
https://stackoverflow.com/questions/8441467/can-you-draw-custom-search-boundaries-in-google-map
Ability to draw boundaries on Google Maps