Package to help geocode NYC intersections with OSMPythonTools.
Project description
NYC Intersection Geocoder
Package to help finding latitude and longitude for NYC street intersections utilizing OSMPythonTools.
Dependencies:
- OSMPythonTools
- shapely
- Note: GEOS required
Installation:
pip install nyc_intersection_geocoder
Usage:
from nyc_intersection_geocoder.geocoder import IntersectionGC
encoder = IntersectionGC()
result = encoder.get_intersection(
'Wythe Ave', 'N 4th Street', 'Brooklyn'
)
print(type(result)) # shapely.geometry.point.Point
print(result.coords.xy) # (array('d', [-73.962206]), array('d', [40.717871]))
Note: Geographic data for plot is ordered in (longitude, latitude) for to match (x, y) coordinates.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nyc_intersection_geocoder-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c7a841d9b1a200ffef70ff0c6abc0fe07ea32947143f87cad3379ca1b74a2c9 |
|
MD5 | a93fc4815324ede24f02416d7033f2fe |
|
BLAKE2b-256 | 20fcd14d95498333208a716a2a18852dbdf2dd43204e12c3300438d706e2c8c7 |
Close
Hashes for nyc_intersection_geocoder-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fec833ac7e58d8452b34bce26e6f28298f1409f88df9505db893079e924441c6 |
|
MD5 | 66201ea944b8aa31a31e5ee5be92169f |
|
BLAKE2b-256 | b827c707e246a2121edac8f62688c68264c85b334f70224f8be0a6ef8b4061f0 |