Closed precursorca closed 1 month ago
This is not a bug this is how macOS and unix command line's work with arguments that begin with "-". You need to add --
then put the negative arguments after the --
:
❯ locationator lookup -- -12.0463731 -77.042754
{
"location": [
-12.0463731,
-77.042754
],
"name": "Plaza Dos de Mayo",
"thoroughfare": "Alfonso Ugarte Avenue",
"subThoroughfare": "",
"locality": "Lima",
"subLocality": "",
"administrativeArea": "Lima",
"subAdministrativeArea": "",
"postalCode": "",
"ISOcountryCode": "PE",
"country": "Peru",
"postalAddress": {
"street": "Alfonso Ugarte Avenue",
"city": "Lima",
"state": "Lima",
"country": "Peru",
"postalCode": "",
"ISOCountryCode": "PE",
"subAdministrativeArea": "",
"subLocality": ""
},
"inlandWater": "",
"ocean": "",
"areasOfInterest": [
"Plaza Dos de Mayo"
],
"timeZoneName": "America/Lima",
"timeZoneAbbreviation": "GMT-5",
"timeZoneSecondsFromGMT": -18000
}
Excellent.
Success!
Alex Narvey @.***
On May 24, 2024, at 1:41 PM, Rhet Turnbull @.***> wrote:
This is not a bug this is how macOS and unix command line's work with arguments that begin with "-". You need to add -- then put the negative arguments after the --:
❯ locationator lookup -- -12.0463731 -77.042754 { "location": [ -12.0463731, -77.042754 ], "name": "Plaza Dos de Mayo", "thoroughfare": "Alfonso Ugarte Avenue", "subThoroughfare": "", "locality": "Lima", "subLocality": "", "administrativeArea": "Lima", "subAdministrativeArea": "", "postalCode": "", "ISOcountryCode": "PE", "country": "Peru", "postalAddress": { "street": "Alfonso Ugarte Avenue", "city": "Lima", "state": "Lima", "country": "Peru", "postalCode": "", "ISOCountryCode": "PE", "subAdministrativeArea": "", "subLocality": "" }, "inlandWater": "", "ocean": "", "areasOfInterest": [ "Plaza Dos de Mayo" ], "timeZoneName": "America/Lima", "timeZoneAbbreviation": "GMT-5", "timeZoneSecondsFromGMT": -18000 } — Reply to this email directly, view it on GitHub https://github.com/RhetTbull/locationator/issues/17#issuecomment-2130152504, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEG7VEU33KHATDUOON2RLYTZD6CWFAVCNFSM6AAAAABIHY5FQGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZQGE2TENJQGQ. You are receiving this because you authored the thread.
The lookup command line does not seem to want to take longitude beginning with a minus sign. only positive longitude.