Get a street schedule for a game using the Google Maps API

I'm new to the Google Maps API, and I want to develop a game that will use streets on Google maps as paths. I know very well what I need, but I don’t even know what to start searching in the API documents ...

How can I get something like a graphical representation of city streets or another part of the Google map - something like vertices for intersections and street names for edges (or something that I can convert to something like that), with vertices displayed in (lat, long) coordinates ... or even Polyline objects for streets so that I can extract from them what I want from them? (The route search algorithm, of course, has access to a data structure like this, so it is somewhere out there, but how do I get it through the API?)

If someone tried to write something like a custom application for finding routes based on Google Maps, he probably went through the step of getting this data king from the API, so please share a solution to this if you already understood this .. .

+4
source share
1 answer

Street data is not accessible through the API, except that it is displayed in the route service output. To get voluminous data that you seem to be asking about your use, you will need to find a different source, depending on the country, it may be freely available; or you can get what you need from OpenStreetMaps .

+2
source

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


All Articles