simplemap
simplemap copied to clipboard
Here map geolocation API - invalid request
Description
Using Simple Map Pro with Here for Geo Service. When searching for an address, if I click on a found address below the search box I get 400 bad request from Here maps.
Steps to reproduce
- set Simple Map Pro plugin to use OpenStreetMap as map style, Here as Geo service (with app id and code); IP Geolocation - none, what3words - no;
- create Map field with all the lightswitches off, preferred country: United Kingdom
- hook up that field to an entry;
- create new entry, search for an address via "Search for a location" field; e.g. 68 Barrack Street, Colchester, CO1 2LT, England
- matched address shows below the field; click on it
- in the console you can see the following request:
https://geocoder.api.here.com/6.2/geocode.json?app_id=XXX&app_code=XXX&locationid=NT_Fe750LxzMo25mgDVy4WNiD_2gD&jsonattributes=1&gen=9&language=enwith following response:{"details":"Request is not valid! (Input parameter validation failed. Illegal input for parameter 'id': Invalid Location ID. Actual parameter value: 'NT_Fe750LxzMo25mgDVy4WNiD_2gD')","additionalData":[],"subtype":"InvalidInputData","type":"ApplicationError"} - happens for any address I try
Additional info
- Craft version: 3.5.19.1 (Pro)
- Maps version: 3.9.1 (Pro)
- PHP version: 7.4.16 and 7.1.33
- Database driver & version: MySQL 5.5.5
- Other Plugins: Asset Usage => 2.2.1 Campaign Monitor => 1.0.0 Centres =>1.1.2 Commons =>1.0.0 Control Panel CSS =>2.3.0 Cookies =>1.1.14 Craft Commerce =>3.2.17.4 Embedded Assets =>2.5.3 Entry Instructions =>1.0.7 Feed Me =>4.3.6 Field Manager =>2.2.2 Freeform =>3.11.3 Icon Picker =>1.1.10 Incognito Field =>1.2.0 Inventory =>2.1.1 Maps =>3.9.1 Navigation =>1.4.15 Redactor =>2.8.7 Retour =>3.1.53 SEOmatic =>3.3.40 Similar =>1.1.4 Store Hours =>2.1.1.1 Super Table =>2.6.7 Table Maker =>2.0.1 Typed link field =>1.0.25 Typogrify =>1.1.18 Wordsmith =>3.3.0.1