We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug The class GHGeocodingEntry uses "house_number" as JsonProperty:
GHGeocodingEntry
house_number
@JsonProperty("house_number") public void setHouseNumber(String houseNumber) { this.houseNumber = houseNumber; }
The geocoding API response (https://graphhopper.com/api/1/geocode) sends property as "housenumber". Therefore all hits contain houseNumber = null.
housenumber
houseNumber = null
To Reproduce Make an API call as follows:
... GraphHopperGeocoding graphHopperGeocoding = new GraphHopperGeocoding(); boolean reverse = true; GHPoint point = new GHPoint(location.getLatitude(), location.getLongitude()); GHGeocodingRequest req = new GHGeocodingRequest(point, "de", 20); graphHopperGeocoding.setKey(KEY); GHGeocodingResponse resp = graphHopperGeocoding.geocode(req); for (GHGeocodingEntry hit : resp.getHits()) { hit.getHouseNumber(); // always null! }
hit.getHouseNumber() will always be null, no matter what location you put in.
hit.getHouseNumber()
null
Expected behavior hit.getHouseNumber() should return the actual housenumber ;-)
System Information JAVA 1.8, directions-api-client-hc-0.10.0.jar (Code of GHGeocodingEntry is the same on master).
The text was updated successfully, but these errors were encountered:
Are you sure that this fails? If yes, then it must be something else as we include both properties in the output: graphhopper/geocoder-converter#57
Sorry, something went wrong.
I'm not using the geocoder-converter, I'm using graphhopper/client-hc!
graphhopper/client-hc
Sorry, I meant a different thing. But yes, this does not apply to the default geocoding provider. Will fix this.
fix geocoding client bug #1825
7796f46
Thanks for reporting this!
No branches or pull requests
Describe the bug
The class
GHGeocodingEntry
uses "house_number
" as JsonProperty:The geocoding API response (https://graphhopper.com/api/1/geocode) sends property as "
housenumber
". Therefore all hits containhouseNumber = null
.To Reproduce
Make an API call as follows:
hit.getHouseNumber()
will always benull
, no matter what location you put in.Expected behavior
hit.getHouseNumber()
should return the actual housenumber ;-)System Information
JAVA 1.8, directions-api-client-hc-0.10.0.jar (Code of
GHGeocodingEntry
is the same on master).The text was updated successfully, but these errors were encountered: