Get directions using Google Maps

I am wondering if it is possible to create a route on a map using a train track. I know its possible on normal roads.

+3
source share
3 answers

It is certainly possible. (In a broad sense, anything is possible) :-)

The first thing you need is the location of the railroad tracks. For the United States, Canada and parts of Europe, this is publicly available as shapefiles, for example: http://www.lib.unc.edu/reference/gis/datafinder/index.html?search_type=show_category_contents&datalayers=1&category_id=109

. google.maps.polyline() ( GPolyline(), V2 API), . , , , . - .: -)

.

+1
0

IOS 4 introduces some new features, such as MKOverlay, which can overlay circles, polygons on the map. You can try this for drawing on a map.

0
source

Source: https://habr.com/ru/post/1754630/


All Articles