javascript - UK postcodes with SimpleMaps -


i'm using simple maps plugin on site i'm building http://simplemap-plugin.com/demo/ it's based on google maps api. have zip (in uk postcode) input visible has used base search. search functionality works fine if use full postcode example w1u *pz if type w1 end getting result road in algeria. know if there away in gmaps api search postcodes , exclude roads, typing start of postcode (the area code) give desired result.

perhaps simplest way limit results specific country, in case i'm presuming uk.

https://developers.google.com/maps/documentation/geocoding/#regioncodes

the problem you're going have such query how decide result return, querying 'w1' going return series of arbitrary addresses postcodes contain 'w1' example nw1. may best specifying minimum length?


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -