Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGeocoding and Search API v7 #52
Comments
|
Many thanks for reporting! The update of the API versions is planned for the release of {hereR} v0.5.0. Apart from the Geocoding API v6.2 also the Routing API v7.2 and the Public Transit API v3 could be upgraded. The reason for being a bit delayed with upgrading the API versions in the {hereR} package is that HERE has switched to a new encoding of LINESTRINGs "flexible polyline encoding" (which is not relevant in the case of the Geocoder API but it is for the Routing and Public Transit API) and there hasn't been an implementation in R for decoding polylines encoded in this format. Therefore, the {flexpolyline} package had to make its way to CRAN first. The release of v0.5.0 is planned for mid or end of September. |
|
The Geocoder API used in
Except for the new Thanks again for your input! Session info
|
HERE launched a new Geocoding and Search API v7 (apparently already some time ago).
The Geocoder, Geocoder Autocomplete (and Places) APIs have been placed "in maintenance":
From https://developer.here.com/documentation/geocoder/dev_guide/topics/what-is.html
I have not found out the EOL of the "old" APIs, so cannot say how urgent it is to act on this.
Apparently the response format also changed. Here are the geocoding results for "Schweighofstrasse 190, Zurich, Switzerland"
v6.2
{ "Response": { "MetaInfo": { "Timestamp": "2020-08-18T14:34:00.522+0000" }, "View": [ { "_type": "SearchResultsViewType", "ViewId": 0, "Result": [ { "Relevance": 1, "MatchLevel": "houseNumber", "MatchQuality": { "Country": 1, "City": 1, "Street": [ 1 ], "HouseNumber": 1 }, "MatchType": "interpolated", "Location": { "LocationId": "NT_wqJFy0LBrbr0VLs1azqsVB_xkDM", "LocationType": "point", "DisplayPosition": { "Latitude": 47.3596988, "Longitude": 8.5075278 }, "NavigationPosition": [ { "Latitude": 47.35959, "Longitude": 8.50741 } ], "MapView": { "TopLeft": { "Latitude": 47.3608229, "Longitude": 8.5058683 }, "BottomRight": { "Latitude": 47.3585746, "Longitude": 8.5091873 } }, "Address": { "Label": "Schweighofstrasse 190, 8045 Zürich Zürich, Schweiz", "Country": "CHE", "State": "ZH", "County": "Zürich", "City": "Zürich", "District": "Kreis 3", "Street": "Schweighofstrasse", "HouseNumber": "190", "PostalCode": "8045", "AdditionalData": [ { "value": "Schweiz", "key": "CountryName" }, { "value": "Zürich", "key": "StateName" }, { "value": "Zürich", "key": "CountyName" } ] } } } ] } ] } }v7
{ "items": [ { "title": "Schweighofstrasse 190, 8045 Zürich Zürich, Schweiz", "id": "here:af:streetsection:c9lD-AuiFGH7e4vmkB0XDB:EAIaAzE5MChk", "resultType": "houseNumber", "houseNumberType": "interpolated", "address": { "label": "Schweighofstrasse 190, 8045 Zürich Zürich, Schweiz", "countryCode": "CHE", "countryName": "Schweiz", "state": "Zürich", "county": "Zürich", "city": "Zürich", "district": "Kreis 3", "street": "Schweighofstrasse", "postalCode": "8045", "houseNumber": "190" }, "position": { "lat": 47.35955, "lng": 8.50769 }, "access": [ { "lat": 47.35948, "lng": 8.50752 } ], "mapView": { "west": 8.50636, "south": 47.35865, "east": 8.50902, "north": 47.36045 }, "scoring": { "queryScore": 1, "fieldScore": { "country": 1, "city": 1, "streets": [ 1 ], "houseNumber": 1 } } } ] }