Giter Site home page Giter Site logo

Comments (6)

docmarionum1 avatar docmarionum1 commented on June 4, 2024

Can you give some specific examples of the function calls you're making?

from python-geosupport.

SPTKL avatar SPTKL commented on June 4, 2024

geo = g.address(house_number=num, street_name=street, borough_code=borough, mode='regular+tpad')

from python-geosupport.

docmarionum1 avatar docmarionum1 commented on June 4, 2024

I tried the same thing and didn't notice anything different. What specific address are you noticing it with?

from python-geosupport.

SPTKL avatar SPTKL commented on June 4, 2024
g['1A'](house_number='204-11', street_name='38 ave', borough_code='qn')['Longitude']
g['1A'](house_number='204-11', street_name='38 ave', borough_code='qn', mode='regular+tpad')['Longitude']

the first would return a longitude, the second won't, why is that? I thought regular is the default mode and regular_tpad is the union of regular and tpad, hence the second should return a longitude too

from python-geosupport.

docmarionum1 avatar docmarionum1 commented on June 4, 2024

'regular+tpad' isn't an expected input, but as long as mode contains 'tpad' it will set tpad to True. Essentially, 'regular+tpad' == 'tpad'.

As for why the longitude doesn't come back from Geosupport, I'm not sure. If you look at the response there are return codes that indicate that there was a conflict between the PAD and TPAD files.

'Reason Code': '*',
'Reason Code Qualifier': '2',
'Warning Code': '',
'Geosupport Return Code (GRC)': '01',
'Message': 'TPAD BBL USED, NO EXISTING PAD BBL',

'TPAD BIN Status (for DM job)': '',
'TPAD New BIN': '4618783',
'TPAD New BIN Status': '0',
'TPAD Conflict Flag': '2',

It looks like the BIN and BBL associated with that address changed in TPAD. I'm not sure if it's expected behavior in this case to not return latitude and longitude. You'd have to ask the Geosupport developers.

Here's some documentation about TPAD and error codes:

https://nycplanning.github.io/Geosupport-UPG/appendices/appendix17/
https://nycplanning.github.io/Geosupport-UPG/chapters/chapterVI/section11/

Closing as this seems to be an issue with Geosupport itself and not python-geosupport.

from python-geosupport.

SPTKL avatar SPTKL commented on June 4, 2024

Thanks

from python-geosupport.

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.