Skip to content
Permalink
Browse files

fixed what3words map coord search (9ebfa1c), fixes #1130

  • Loading branch information...
following5 committed Oct 2, 2017
1 parent d993c3e commit fe328ad58707b07f404e3566172099ca5465e426
Showing with 3 additions and 3 deletions.
  1. +3 −3 htdocs/map2.php
@@ -460,9 +460,9 @@ function output_namesearch($sName, $nLat, $nLon, $nResultId)
if ($result) {
$json = json_decode($result, true);
if ($json['words'] !== null && $json['geometry'] !== null && count($json['geometry']) === 2) {
echo '<coord name="' . xmlentities(implode('.', $json['words'])) .
'" latitude="' . xmlentities($json['lat']) .
'" longitude="' . xmlentities($json['lng']) . '" />' . "\n";
echo '<coord name="' . xmlentities($json['words']) .
'" latitude="' . xmlentities($json['geometry']['lat']) .
'" longitude="' . xmlentities($json['geometry']['lng']) . '" />' . "\n";
}
}
}

0 comments on commit fe328ad

Please sign in to comment.
You can’t perform that action at this time.