Use GPS to suggest user nearest location

hye im new to developing app. for my final year project, i need to develop an apps that can detect the current location of user and then suggest the nearest places for the user to visit. is there any ways to do this?

i hope anyone can help me pliz

You can certainly use Corona SDK to get the user’s current location. Given a list of places with latitude and longitude values, with some simple math, you can produce a list of places withing a certain “distance”.

The hard part is where are you getting your data from? What format is it in? This is too variable of a question to give you a blanket “This is how to do this” answer for.  Do you have the location data that you will be including in your app? Do you have to download it from somewhere? Do you have a service that you can just query for nearby items?

Let us know more about your data and perhaps we can be more helpful.

Rob

the location data will be in latitude and longitude…user will only have the list of the nearest places.

How are they getting the list of nearest places?

You can use the Google Places API to get a list of nearby locations based on specific criteria (defined by you or the user)

This will involve:

  1. Using GPS feature in Corona to get GPS position.

  2. Setting up an account with the Google Places service.

  3. Call to network.request() to query Google Places.

  4. Having code to parse that response into meaningful output.

Things have changed since I did this, but I think this is where you’d want to start for getting setup w/ Google Place:

https://developers.google.com/places/web-service/

I have this

https://forums.coronalabs.com/topic/62558-new-yelp-plugin

You can certainly use Corona SDK to get the user’s current location. Given a list of places with latitude and longitude values, with some simple math, you can produce a list of places withing a certain “distance”.

The hard part is where are you getting your data from? What format is it in? This is too variable of a question to give you a blanket “This is how to do this” answer for.  Do you have the location data that you will be including in your app? Do you have to download it from somewhere? Do you have a service that you can just query for nearby items?

Let us know more about your data and perhaps we can be more helpful.

Rob

the location data will be in latitude and longitude…user will only have the list of the nearest places.

How are they getting the list of nearest places?

You can use the Google Places API to get a list of nearby locations based on specific criteria (defined by you or the user)

This will involve:

  1. Using GPS feature in Corona to get GPS position.

  2. Setting up an account with the Google Places service.

  3. Call to network.request() to query Google Places.

  4. Having code to parse that response into meaningful output.

Things have changed since I did this, but I think this is where you’d want to start for getting setup w/ Google Place:

https://developers.google.com/places/web-service/

I have this

https://forums.coronalabs.com/topic/62558-new-yelp-plugin