Skip to content

Instantly share code, notes, and snippets.

@laacz
Created November 21, 2013 12:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laacz/7580633 to your computer and use it in GitHub Desktop.
Save laacz/7580633 to your computer and use it in GitHub Desktop.
Vāzes JSON API
<?php
// Ziņojumi un publiskie lietotāji (tagad visi anonīmi)
$params = [
'format' => 'JSON',
'types' => 'alerts,users',
'os' => 60,
'ma' => '5000',
'mu' => '5000',
'left' => '2301339.9590624',
'right' => '3253439.5832122',
'bottom' => '7487067.3994535',
'top' => '8008673.6803783',
'sc' => '1',
'pr' => 'Mercator',
];
$uri = 'http://world.waze.com/rtserver/web/GeoRSS?' . http_build_query($params);
// ....
// Sastrēgumi
$params['mj'] = '1000';
$params['ma'] = '1000';
$params['jmds'] = '120';
$params['jmu'] = '0';
$params['types'] = 'traffic';
$uri = 'http://world.waze.com/rtserver/web/GeoRSS?' . http_build_query($params);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment