Create street block covers from Google map data or other map APIs

My question is this: how can I capture “blocks” in a city for use in a game? (And then display them shaded in a specific color?)

My general idea is to use the real blocks of your city in the game, which you can buy / sell.

I want to display the areas you own as polygonal overlays on Google maps.

Are google maps a way forward or other APIs like OpenStreetMap etc. are more useful for this?

Any pointers will be appreciated as general algorithms for what data needs to be captured and how to build “blocks” from it, or API calls that can return a block / home level polygon for me.

+3
source share
2 answers

It sounds complicated, mainly because it will be difficult for you to determine what a block is - one side of one street or a rectangle enclosed by four streets? What if it is not a rectangle? Etc.

OpenStreetMap data is probably the best because you can actually load the data - via OSM Export or Cloudmade Instance by region.

You can consider a different approach (that is, give users the opportunity to define their own polygons) or allow users to create streets (which would be easier to do with OSM data).

, . .

+1

. objective-c, OSM OSD , "", , "" , , . (, ), .

, OSM, , , , . .

-1

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


All Articles