Giter VIP home page Giter VIP logo

Comments (3)

mlipper avatar mlipper commented on June 4, 2024

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 location
    • xCoordinate/yCoordinate
    • longitude/latitude
    • Represents a "theoretical address" geocoded to the street centerline based on address ranges
  • 1A location
    • internalLabelXCoordinate/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.

SPTKL avatar SPTKL commented on June 4, 2024

Thank you, that's super helpful!

from geoclient.

mlipper avatar mlipper commented on June 4, 2024

Anytime. Glad it helped.

from geoclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.