Comments (3)
Hi,
As you mentioned, the /geoclient/v1/address
endpoint is simply a pass-through to the Geosupport function 1B
. The information returned by function 1B
is composed of results from two separate address-related functions 1E
and 1A
. These functions can succeed or fail independently as was the case in the example you've given (1E
succeeded, 1A
falied). The confusion (I think) stems from the differing spatial fields each function returns:
1E
locationxCoordinate/yCoordinate
longitude/latitude
- Represents a "theoretical address" geocoded to the street centerline based on address ranges
1A
locationinternalLabelXCoordinate/internalLabelYCoordinate
longitudeInternalLabel/latitudeInternalLabel
- Represents a "real property address" geocoded to the centroid of the containing tax lot polygon
Within the unique scope of each function, you''ll notice the same real-world point location is returned in two different coordinate reference systems:
- The naming conventions which include "...xCoordinate" and "...yCoordinate" is the point in CRS EPSG:2263
- The naming conventions "longitude..."/"latitude..." is the point in EPSG:4326
Sooo...in the example you've given, we see that:
{ address: {
...
"geosupportReturnCode": "00", <-- function 1E succeeded
"returnCode1e": "00",
"geosupportReturnCode2": "42", <-- function 1A falied
"returnCode1a": "42",
...
// 1E location is available:
"latitude": 40.74010473007666, <-- EPSG:4326 ("lat/long")
"longitude": -73.9017263539154,
"xCoordinate": "1011483", <-- EPSG:2263 ("NY State Plane")
"yCoordinate": "0208932",
...
// 1A location info is NOT available
}}
In plain English, the above essentially means "45-06 is valid house number on the range assigned to 64th street in queens but there's no record of that actual address on an existing tax lot".
For comparision, try a call with address 106 East 64 street, Manhattan
which succeeds for both functions. In addtion to the 1E
fields, you'll notice the 1A
info also:
{ address: {
...
// 1A is available (yay!)
"internalLabelXCoordinate": "0993316",
"internalLabelYCoordinate": "0218250",
...
"latitudeInternalLabel": 40.76571755841329,
"longitudeInternalLabel": -73.9672716432342,
...
}}
I'm not sure what's going on in the case of python-geosupport, so I'd recommend asking for clarification there.
Please let me know if I've answered the right question.
Thanks!
Matt
from geoclient.
Thank you, that's super helpful!
from geoclient.
Anytime. Glad it helped.
from geoclient.
Related Issues (20)
- Documentation for using OpenJDK HOT 1
- Create subproject for test support and data HOT 1
- Replace problematic external dependencies
- missing documentation resources HOT 1
- Documentation for installing GeoSupport on Linux? HOT 24
- Java compilation error with latest master HOT 7
- Results differ between Single Field Search and Address endpoints HOT 5
- ./gradlew regenerate HOT 1
- Tests are failing (SingleFieldSearchHandlerTest) HOT 7
- Add DSNY bulk pick-up to F1B HOT 1
- v2.0 release update HOT 2
- Consider adding libpostal on to single-field search HOT 3
- Daily maintenance HOT 1
- Update parser city-names.properties HOT 1
- address contains appartment number returned reject response HOT 1
- clarify how to access API HOT 2
- issues with similar street names
- Update the v2 docs examples with 2020 census data
- 2020 NTAs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geoclient.