I'm trying to create a simple function that extracts all geolocation information from a given string.
Code:
 
In[42]:= deployFindCity = GrammarRules[
   {
    location : GrammarToken["findCity"] :>  location
    },
   {
    "findCity" -> GrammarToken["City"],
    "findCity" -> GrammarToken["Location"],
    "findCity" -> GrammarToken["StreetAddress"], 
    "findCity" -> GrammarToken["GeoCoordinates"]
    }
   ];
findCity = CloudDeploy[deployFindCity]
Out[43]= CloudObject["https://www.wolframcloud.com/objects/xxxxxxx"]
In[47]:= GrammarApply[findCity, "1023 S Salish ct, Spokane, WA, USA"]
Out[47]= $Failed
I thought it was my function so I tried this:
 
   Interpreter["StreetAddress"]["1023 S Salish ct, Spokane, WA, USA"]
   Out= Failure
    Message: No street address interpretation found. Try again.
    Tag: InterpretationFailure
    Type: StreetAddress
    Input: 1023 S Salish ct, Spokane, WA, USA
So, what is the best way to extract the Geolocation? I want to return the City and the GeoPosition.
I get this error in Mathematica as well as the editor in the Cloud.