Topic: How to get locations with keywords?

In my app, I want to display the result of sushi restaurants.
If the user passes the query "sushi 19147" (sushi restaurant with postal code), it will show the all sushi restaurants in area 19147.

How to achieve that?

Re: How to get locations with keywords?

Hello.

Example:

using UnityEngine;

public class Sushi19147:MonoBehaviour
{
    public string key;

    private void Start()
    {
        OnlineMapsGooglePlaces.FindText("sushi 19147", key).OnComplete += OnComplete;
    }

    private void OnComplete(string response)
    {
        Debug.Log(response);
        OnlineMapsGooglePlacesResult[] results = OnlineMapsGooglePlaces.GetResults(response);
        foreach (OnlineMapsGooglePlacesResult result in results)
        {
            OnlineMaps.instance.AddMarker(result.location, result.name + " " + result.rating);
        }
    }
}
Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

3 (edited by neelg 2017-05-23 06:18:24)

Re: How to get locations with keywords?

Alex Vertax, thank you so much!
Fluently worked.
:-)