Open pral2a opened 6 years ago
URL to the API works fine standalone: https://maps.googleapis.com/maps/api/place/autocomplete/json?key=AIzaSyCMUbKxhE3BWLRClSC6lxcWHMgXr7BB-J4&input=pujades
But we are getting the CORS error
Maybe we need to load a Google Places library, and use their built in functions?
Documentation: https://developers.google.com/maps/documentation/javascript/places-autocomplete
Mapzen is being deprecated so we'll need to move to the Google Maps API:
https://github.com/OrganicityEu-Platform/organicity-urban-data-observatory/blob/e1c3831617baf4fa17a24a623c90abcc683bf9c9/src/app/components/search/search.controller.js#L42-L99