Use Devolia Geo

From Devolia.org wiki - EN

Jump to: navigation, search

Contents

Use Devolia Geo

Devolia Geo is not yet shipped with a front-office as its purpose is being used as a service.

Assuming Devolia Geo is installed on http://www.yourserver.com/geo/, the service can be reached at http://www.yourserver.com/geo/geoservice-rpc.php

Actions

get_closest_city

http://www.yourserver.com/geo/geoservice-rpc.php

should return

<data>
  <city>Paris</city>
  <country>France</country>
</data>
http://www.yourserver.com/geo/geoservice-rpc.php?mode=json

should return

{"city":"Paris","country":"France"}
http://www.yourserver.com/geo/geoservice-rpc.php?action=get_closest_city&lat=40.714269&long=-74.005973

should return

<data>
  <city>New York City</city>
  <country>United States</country>
</data>

Javascript API

Since version 1.4.0 Devolia Geo also has a Javascript API

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages