Hello Judy, Do you mean embed a map in your website and show POIs as markers?
This is described in the wiki at http://wiki.openstreetmap.org/wiki/OpenLayers_Simple_Example For POIs, what you should do is download a planet.osm extract for your area of interest, see http://wiki.openstreetmap.org/wiki/Planet.osm then use Osmosis: http://wiki.openstreetmap.org/wiki/Osmosis to extract the data you need, then import that data into a database, e.g. osm2pgsql: http://wiki.openstreetmap.org/wiki/Osm2pgsql You can then generate a feed from the database in a given format (e.g. GeoRSS) from PHP by querying the database, and overlay it on OpenLayers, e.g see the following for an introduction to OpenLayers: www.openlayers.org http://www.soc.org.uk/southampton09/presentations/OpenLayers.pdf http://www.free-map.org.uk/course/ewt/openlayers.xhtml http://www.free-map.org.uk/course/ewt/openlayers.2xhtml Hope I've understood what you want to do correctly! Nick -----Judy Lovas <[email protected]> wrote: ----- To: [email protected] From: Judy Lovas <[email protected]> Date: 16/11/2011 03:20PM Subject: [OSM-dev] how to call from php? hi OSM folks I have a php application that I would like to be able to call map pages from and pass location coordinates and have places marked on the generated map in a browser window. The old mapping software I had been using went out of business and I cannot get newer tiger updates for its maps. I just happened upon OSM and would like use your maps if possible. What is the best way to create this interface from php code? Right now I my php app is hosted with a linux service provider. Would I need to download map files, or can I just link to OSM servers? Thank you in advance for your help and advice. Judy _______________________________________________ dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/dev
_______________________________________________ dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/dev

