JaXxIn
Posts: 8
Joined: Fri Sep 15, 2017 9:12 pm

Using HERE maps to Geocode

Fri Nov 09, 2018 7:20 am

Hi,

Is it possible for the HERE maps geocode to also store the postcode?

It only grabs it as part of the 'address' response and never actually gets the 'postalcodenumber' response.

Example:

Code: Select all

{
    "id": 69,
    "result": {
        "reverseGeocodeResult": {
            "numRequested": 1,
            "status": "OK",
            "gcProviderSource": "HERE(1)",
            "locations": [{
                "id": 0,
                "pos": {
                    "lng": -1.29226,
                    "lat": 53.29612,
                    "alt": 0
                },
                "countryName": "United Kingdom",
                "cityName": "Chesterfield",
                "postalCodeNumber": null,
                "streetBox": null,
                "streetName": "M1",
                "streetNumber": null,
                "address": "M1, Chesterfield, S43 4, United Kingdom",
                "administrativeAreaName": "Derbyshire",
                "subAdministrativeAreaName": null,
                "pointOfInterest": null,
                "description": null,
                "neighborhood": "Barlborough",
                "categoryId": 0,
                "formattedResult": "M1, Chesterfield, S43 4, United Kingdom"
            }],
            "resultMap": [[0]]
        },
        "__type": "Franson.Geo.Geocoding.ReverseGeocodeResult",
        "queryTimeStamp": new Date(1541744849352),
        "__result": "reverseGeocodeResult"
    }
}
The postalCodeNumber is always null, which means I can't grab the postcode within reports anymore. Google geocode console is getting expensive at 7000+ requests a day.

Cheers

JaXxIn
Posts: 8
Joined: Fri Sep 15, 2017 9:12 pm

Re: Using HERE maps to Geocode

Tue Nov 13, 2018 8:12 am

Anybody any suggestions?

Return to “GpsGate Server - How to setup and use”