none
Specifying Land Type RRS feed

  • Question

  • Hi, 

    So I'm editing a plugin for my company. We are using the maps REST API to return results to the users. A few of the users have reported inaccuracy with their results (for example, querying Georgia returns the state in the US, instead of the country). Up front, the original developer decided to ask the user what sort of data they were providing (ex: zip code, country, state, etc). But they are still just using the 'q=' parameter regardless of what the user chooses. So while that was a silly mistake on their part, it helps so I can pass an additional parameter if they choose 'Country'.

    So in short...my question is how can I specify that I want my query to return a country?
    Monday, August 5, 2013 6:38 PM

Answers

  • Whoops. This was quite easy actually.

    I will report for any new users who may have a similar problem.

    The original URL was:

    q=georgia&<everything else>

    I simply ignored the query parameters and changed it to:

    q=&countryregion=georgia

    Boom!

    Monday, August 5, 2013 7:56 PM