Skip to content
New issue

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

Uncorrect ENDPOINT_URL #158

Open
fab01 opened this issue Apr 29, 2021 · 0 comments
Open

Uncorrect ENDPOINT_URL #158

fab01 opened this issue Apr 29, 2021 · 0 comments

Comments

@fab01
Copy link

fab01 commented Apr 29, 2021

Hi there,
we are experiencing issues with webtools geocoding service:

Client error: GET https://europa.eu/webtools/rest/geocoding/?f=json&text=Via+Diocleziano+107%2C+I-80124+NAPOLI+IT&maxLocations=5&outFields=*' resulted in a '422 Unprocessable Entity' response: {"message":"The given data was invalid.","errors":{"address":["The address field is required when addresses is not prese (truncated...)

I guess that GET variable 'text' should be replaced with 'address':

const ENDPOINT_URL = 'https://europa.eu/webtools/rest/geocoding/?f=json&address=%s&maxLocations=%d&outFields=*';

Best regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant