oturns / geosnap

The Geospatial Neighborhood Analysis Package
https://oturns.github.io/geosnap-guide
BSD 3-Clause "New" or "Revised" License
247 stars 32 forks source link

place api #74

Closed knaaptime closed 5 years ago

knaaptime commented 5 years ago

we could use fuzzywuzzy or similar to add a named-place based api similar to what cenpy and osmnx do

knaaptime commented 5 years ago

we get this for free, basically, if we just use cenpy's products.from_place and pass the result to any of the Community constructors' boundary argument

we could implement a new from_place constructor which would do that behind the scenes, or we could just allow a place argument in the existing constructors, which might be handy

knaaptime commented 5 years ago

or, we could just show examples that use something like, e.g.

boundary = cenpy.products.from_place(...)
geosnap.Community.from_census(boundary=boundary)

instead of trying to do it all inside the community constructor. Currently I'm leaning toward this approach

knaaptime commented 5 years ago

i think its better to do this in a clear example using cenpy rather than try to get too clever with the constructors