Comments (5)
This does seem to be a bug and I'll toss it on the pile. Taking a wild guess, the issue likely stems from the fact that the /search endpoint uses static data to map a finite set of city names to one of the five boroughs needed when calling Geosupport.
The single-field search capability is currently the only Geoclient feature that uses logic and data from outside of the Geosupport application/dataset itself. This feature was one of the reasons this project was originally created and it can be very helpful; the downside is that it relies on arbitrary external data that is not nearly as complete or accurate as what's built into Geosupport itself.
I can't provide an ETA for the fix until I investigate, but please continue to filing reports if you find other such issues.
Thank you for bringing this to our attention!
from geoclient.
Ok,
Thanks for explaining. So in general though then, since the city name isn't even required to use the /address endpoint, is providing just the address and the borough to the /search endpoint sufficient enough to get accurate geocoding? It would seem like it is?
Thanks!
from geoclient.
For all calls, it is always better to provide the borough if available. This is because all the supported Geosupport functions require a borough (address calls will accept either a borough or zip code). Similarly, when using the single-field search (SFS) API, providing the borough is always preferable because then Geoclient doesn't have to try to "guess" which borough to use; in this case, translating the city name "Laurelton" to the standard (to Geosupport) borough name "Queens".
The /search endpoint was created because for, e.g., user-driven searches from a web app or when geocoding a third-party dataset such information often isn't known or doesn't exist. The SFS functionality provides it's own free-form, NYC-specific location parser, fuzzy search and (limited) data-cross-referencing. It provides a limited degree of client-specified algorithm configuration and recursive search based of suggestions returned by Geosupport for unrecognized locations. However, these features come at the price of reduced accuracy because they rely on Geoclient-only logic/heuristics for parsing and interpreting the intended target of your search.
As an imperfect analogy, consider the difference between searching Google and the IMDb for a particular film. The former is great when you're not really sure of the movie's name but the latter is always more conclusive, if you know the name, director, year of release, etc.
Does that make sense or did I just make this more confusing?
from geoclient.
Yes, makes perfect sense, thanks! In our case we always know the borough, so this works out great for us-
from geoclient.
I'm closing this ticket for now; please reopen or create a new ticket as needed. Thanks, Matt
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
- ./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
- Inconsistencies between geoclient and geo support HOT 3
- 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.