Hi everyone,
I’m trying to develop an app right now and stuck at integrating the search function. I tried using the native map (Apple Maps) on iOS but it doesn’t seem to be finding some well-known locations in our hometown. I’m positive that those places can be found on Google Maps so I want to implement Google Maps for this part of the app.
I thought I can make my search in Google Maps, get the coordinates and pinpoint the location on Apple Maps but I don’t have an idea about how to do that. As I’ve tried one of the sample entries with the Google Maps Geocoding API, this approach failed because the API returns one of the other locations with the same name and doesn’t give me another chance.
I guess only thing I can do is integrating “Places Search Box” or “Place Autocomplete” from the Google Maps API. The user will search for the place they are looking for and the API pinpoints that and -hopefully- returns latitude, longitude data to me. (+ https://developers.google.com/maps/documentation/javascript/places-autocomplete#introduction)
At this point, I felt the need to ask for help because I’m not a good web developer and haven’t done anything like that with Corona SDK before. I need your help to find answers to those questions:
1- Is “Places Search Box” or “Place Autocomplete” the right way to do this? If not, what should I do?
2- As I mentioned before, I haven’t done something like this with Corona before so is there a way that I could integrate “Places Search Box” and the Javascript code into the app? If there’s a step by step tutorial -or a direct solution- on how to do that, that would be great.
I’m heavily relying on your answers. Hope you can show me the way. Thank you all in advance.