Skip to content

Instantly share code, notes, and snippets.

@prafulfillment
Created April 2, 2013 23:35
Show Gist options
  • Save prafulfillment/5297171 to your computer and use it in GitHub Desktop.
Save prafulfillment/5297171 to your computer and use it in GitHub Desktop.
How does lat/lon work in OSM?
id | lat | lon | tags
------------+-----------+------------+------------------------------------------------------------
356727456 | 471488295 | -861308679 | {barrier,toll_booth}
356742659 | 471231474 | -859785100 | {barrier,toll_booth}
356894354 | 471719801 | -861979645 | {barrier,toll_booth}
356894449 | 471652531 | -861890538 | {barrier,toll_booth}
356898029 | 472134064 | -862510737 | {barrier,toll_booth}
356898417 | 472324101 | -862721481 | {barrier,toll_booth}
440262751 | 438468665 | -848306075 | {barrier,toll_booth}
443801422 | 450912481 | -863370725 | {barrier,toll_booth}
443801423 | 450410597 | -863852859 | {barrier,toll_booth}
446775732 | 442687960 | -847487154 | {barrier,toll_booth}
496668427 | 448545276 | -881565606 | {name,"Airport Parking",barrier,toll_booth}
525372041 | 463020204 | -874380697 | {name,"Swift Run Gap Entrance Station",barrier,toll_booth}
526241181 | 470778112 | -870435097 | {name,"Front Royal Entrance Station",barrier,toll_booth}
534508045 | 458513289 | -877777774 | {name,"Rockfish Gap Entrance Station",barrier,toll_booth}
563894077 | 470183057 | -857852817 | {barrier,toll_booth}
593310065 | 451407000 | -862524626 | {barrier,toll_booth}
1007474481 | 450913372 | -863373167 | {barrier,toll_booth}
1007474551 | 450910197 | -863366932 | {barrier,toll_booth}
1490074484 | 471821726 | -862095031 | {barrier,toll_booth}
1490074487 | 471811634 | -862099357 | {barrier,toll_booth}
1540185614 | 471812335 | -862099264 | {barrier,toll_booth}
1540185621 | 471812814 | -862098966 | {barrier,toll_booth}
1540187446 | 471814198 | -862098324 | {barrier,toll_booth}
1540187448 | 471813542 | -862098622 | {barrier,toll_booth}
1540190073 | 471815799 | -862097413 | {barrier,toll_booth}
1540190103 | 471816528 | -862096950 | {barrier,toll_booth}
1540197777 | 471817961 | -862096950 | {barrier,toll_booth}
1540197793 | 471820295 | -862095562 | {barrier,toll_booth}
1540197796 | 471820961 | -862095302 | {barrier,toll_booth}
1540197798 | 471818619 | -862096353 | {barrier,toll_booth}
1540200457 | 471823216 | -862094383 | {barrier,toll_booth}
1540200459 | 471822349 | -862094385 | {barrier,toll_booth}
63367966 | 471467951 | -861092841 | {barrier,toll_booth}
63368089 | 471414731 | -860615588 | {barrier,toll_booth}
63371801 | 471235487 | -859817585 | {barrier,toll_booth}
63372758 | 471230805 | -859737613 | {barrier,toll_booth}
63372837 | 471210549 | -859734747 | {barrier,toll_booth}
63375322 | 471430592 | -860613772 | {barrier,toll_booth}
63386624 | 471532635 | -861644908 | {barrier,toll_booth}
63389555 | 472340608 | -862699263 | {barrier,toll_booth}
63398761 | 471619517 | -861836372 | {barrier,toll_booth}
63398812 | 471402884 | -860890283 | {barrier,toll_booth}
63399050 | 471483620 | -861097905 | {barrier,toll_booth}
63399105 | 471506647 | -861285463 | {barrier,toll_booth}
63399230 | 471547828 | -861638029 | {barrier,toll_booth}
63401652 | 472605844 | -862842678 | {barrier,toll_booth}
63403811 | 471195629 | -859915192 | {barrier,toll_booth}
63409781 | 471211505 | -859767519 | {barrier,toll_booth}
63409796 | 471224499 | -859819687 | {barrier,toll_booth}
63413768 | 472731487 | -863007400 | {barrier,toll_booth}
63414087 | 472727953 | -863018484 | {barrier,toll_booth}
63423074 | 472628202 | -862832360 | {barrier,toll_booth}
63424911 | 472154484 | -862493648 | {barrier,toll_booth}
63487518 | 471389508 | -860896971 | {barrier,toll_booth}
63559788 | 471814960 | -862097897 | {barrier,toll_booth}
63559986 | 471819481 | -862095812 | {barrier,toll_booth}
210084142 | 450911698 | -863368689 | {barrier,toll_booth}
210084359 | 450408196 | -863853174 | {barrier,toll_booth}
215615340 | 447192475 | -853150539 | {barrier,toll_booth}
216708191 | 445761998 | -845659357 | {barrier,toll_booth}
312972877 | 473055676 | -863418440 | {barrier,toll_booth}
312973559 | 473051186 | -863445957 | {barrier,toll_booth}
(62 rows)
@prafulfillment
Copy link
Author

select * from planet_osm_nodes where ('toll_booth' = ANY(tags));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment