Skip to content

suggestion to add to documentation #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jehadja opened this issue Jul 7, 2018 · 0 comments
Open

suggestion to add to documentation #131

jehadja opened this issue Jul 7, 2018 · 0 comments
Assignees

Comments

@jehadja
Copy link

jehadja commented Jul 7, 2018

General Information

it will be helpful to add how to make locale result for the package i see a lot of question even some people make pull request etc..
so its better to make it clear its possible to achieve without code changing
code shall be as following

use Geocoder\Query\GeocodeQuery;

$geocoder =   app('geocoder');
$provider = $geocoder->getProvider();
$geocoder = new \Geocoder\StatefulGeocoder($provider,'ar');
$results = $geocoder->geocode('London');

result :

AddressCollection {#1060 ▼
  -locations: array:1 [▼
    0 => GoogleAddress {#1062 ▼
      -id: "ChIJdd4hrwug2EcRmSrV3Vo6llI"
      -locationType: "APPROXIMATE"
      -resultType: array:2 [▶]
      -formattedAddress: "لندن، المملكة المتحدة"
      -streetAddress: null
      -intersection: null
      -political: "المملكة المتحدة"
      -colloquialArea: null
      -ward: null
      -neighborhood: null
      -premise: null
      -subpremise: null
      -naturalFeature: null
      -airport: null
      -park: null
      -pointOfInterest: null
      -establishment: null
      -subLocalityLevels: AdminLevelCollection {#1059 ▶}
      -coordinates: Coordinates {#1067 ▶}
      -bounds: Bounds {#1066 ▶}
      -streetNumber: null
      -streetName: null
      -subLocality: null
      -locality: "لندن"
      -postalCode: null
      -adminLevels: AdminLevelCollection {#1061 ▶}
      -country: Country {#1049 ▶}
      -timezone: null
      -providedBy: "google_maps"
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants