1

Hi there, I am a developer looking to use OSM in conjunction with a store locator plugin for wordpress. I was hoping someone could tell me if it was possible to use OSM with that type of plugin or if there is a different solution that you folks would recommend.

The only thing that I would need to test wether or not OSM would work with this plugin is the API key. If anyone has any helpful tips for this I would be very grateful!

Thanks!

asked 05 Apr '12, 18:07

dommagnifico's gravatar image

dommagnifico
16112
accept rate: 0%


2 Answers:
1

There's no such thing as an API key for OSM. You just specify your user agent (http-style) and you're done.

A store locator should be easy to write using either leaflet or openlayers. Use your own json object for the list of stores, and one of the available tiles for the map background (be sure to respect the tile usage policy).

There may be ready-made wordpress plugins for that, I don't know.

If your needs are more complex than the simple json-based solution can provide, you'll have to give us more details,

permanent link

answered 06 Apr '12, 09:48

Vincent%20de%20Phily's gravatar image

Vincent de P... ♦
17.0k16147244
accept rate: 19%

Basically what I am trying to do is have the user be able to search by either zipcode or state, when the user hits enter to search for said state or zipcode, the map zooms in to that area automatically.

That's pretty much the bare bones version of what I need and I was hoping there was some way to do that with OSM, I am using leaflet as well.

Thank you both for the quick responses. If there is an example of this out there somewhere for me to take a gander at that would be awesome as well, I have been searching all over but to no avail.

(06 Apr '12, 20:50) dommagnifico
0

Without giving concrete hints about your aims, you can have a look at the OSM wiki at Wordpress ... follow all subpages, too.

permanent link

answered 06 Apr '12, 09:59

stephan75's gravatar image

stephan75
12.5k454209
accept rate: 6%

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×25
×9
×7
×7

question asked: 05 Apr '12, 18:07

question was seen: 5,676 times

last updated: 06 Apr '12, 20:50

powered by OSQA