OpenersNotesSection(Spacer1)Details

OpenersPrimaryExamplesSection(Spacer1)Examples  (4)

OpenersExampleSection0(Spacer1)Basic Examples  (4)

Interpret named locations:

Interpreter["Location"]["Boston, MA"]

Interpret geographic coordinates:

Interpreter["Location"]["10.5N 23E"]

Interpret a street address:

Interpreter["Location"]["1 Broadway, NYC"]

Restrict to US locations:

Interpreter[Restricted["Location",(Entity["United States", Entity["Country","UnitedStates"], "Entity[\"Country\", \"UnitedStates\"]", "country"])]]["brooklyn bridge"]

Interpreter[Restricted["Location",(Entity["United States", Entity["Country","UnitedStates"], "Entity[\"Country\", \"UnitedStates\"]", "country"])]]["mt blanc"]

Interpret locations of any kind:

Interpreter["Location"]["NYC"]

Interpreter["Location"]["Eiffel tower"]

Interpreter["Location"]["DC 20500"]

Interpreter["Location"]["Mount Everest"]

Interpreter["Location"]["lat 34, long 78"]

Change the datum for the resulting (RefLink[GeoPosition, paclet:ref/GeoPosition]):

Interpreter[Restricted["Location", Automatic,"NAD27"]]["lat 45.3, long -15"]

Geographic restrictions apply to the center coordinates in case of extended entities:

Interpreter[Restricted["Location",(Entity["Limousin, France", Entity["AdministrativeDivision",{"Limousin","France"}], "Entity[\"AdministrativeDivision\", {\"Limousin\", \"France\"}]", "administrative division"])]]["france"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Interpreter, paclet:ref/Interpreter])  ▪  (RefLink[SemanticImport, paclet:ref/SemanticImport])  ▪  (RefLink[Restricted, paclet:ref/Restricted])  ▪  (RefLink[Failure, paclet:ref/Failure])  ▪  (RefLink[GeoPosition, paclet:ref/GeoPosition])}, {Related Interpreter Types:  (RefLink[ComputedLocation, paclet:ref/interpreter/ComputedLocation])  ▪  (RefLink[GeoCoordinates, paclet:ref/interpreter/GeoCoordinates])  ▪  (RefLink[StreetAddress, paclet:ref/interpreter/StreetAddress])  ▪  (RefLink[City, paclet:ref/interpreter/City])  ▪  (RefLink[Country, paclet:ref/interpreter/Country])  ▪  (RefLink[CountryClass, paclet:ref/interpreter/CountryClass])  ▪  (RefLink[ZIPCode, paclet:ref/interpreter/ZIPCode])  ▪  (RefLink[Airport, paclet:ref/interpreter/Airport])  ▪  (RefLink[USState, paclet:ref/interpreter/USState])  ▪  (RefLink[USStateClass, paclet:ref/interpreter/USStateClass])  ▪  (RefLink[AdministrativeDivision, paclet:ref/interpreter/AdministrativeDivision])  ▪  (RefLink[AdministrativeDivisionClass, paclet:ref/interpreter/AdministrativeDivisionClass])  ▪  (RefLink[Continent, paclet:ref/interpreter/Continent])  ▪  (RefLink[GeographicRegion, paclet:ref/interpreter/GeographicRegion])  ▪  (RefLink[StructuredGeoCoordinates, paclet:ref/interpreter/StructuredGeoCoordinates])  ▪  (RefLink[ComputedCity, paclet:ref/interpreter/ComputedCity])  ▪  (RefLink[ComputedCountry, paclet:ref/interpreter/ComputedCountry])  ▪  (RefLink[ComputedZIPCode, paclet:ref/interpreter/ComputedZIPCode])  ▪  (RefLink[ComputedAirport, paclet:ref/interpreter/ComputedAirport])  ▪  (RefLink[ComputedUSState, paclet:ref/interpreter/ComputedUSState])  ▪  (RefLink[ComputedAdministrativeDivision, paclet:ref/interpreter/ComputedAdministrativeDivision])  ▪  (RefLink[ComputedContinent, paclet:ref/interpreter/ComputedContinent])  ▪  (RefLink[ComputedGeographicRegion, paclet:ref/interpreter/ComputedGeographicRegion])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Setting Up Input Interpreters, paclet:guide/InterpretingStrings])}})}})