5

Can anyone help me search by street name in OpenLayers? I essentially want to be able to search for streets/postcodes in OpenLayers in the same way I can search on Google maps. Is this possible?

0

3 Answers 3

3

No, its not that easy. You need to put up a search engine like nominatim for that purpose.

1

Openlayers is like a really good suspension and you are asking for a full-blown car. You have to find data that has what you want (like Openstreetmap), and load it to a queryable data store. Another option is to leverage something like the mapquest open data apis

1

Openlayer Geocoder (ESRI and Geonames) Example

enter image description here

http://projects.bryanmcbride.com/sandbox/OL_geocode.html#

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.