street-address

What is the most semantic way to display a street address in HTML?

五迷三道 提交于 2019-11-29 22:56:32
I have an address that is going to be displayed on a webpage, but it is not the address for the author of the page. How should this be coded to be semantic given the w3c recommendation of: The ADDRESS element may be used by authors to supply contact information for a document or a major part of a document such as a form. This element often appears at the beginning or end of a document. You could use the hCard Microformat to describe your address. The advantage of Microformats is that you can use them in your existing documents to enrich them. Here’s an example derived from the example from the

How to find distance between two addresses? (Java server side)

£可爱£侵袭症+ 提交于 2019-11-29 10:33:29
问题 I have a "social" geographic aware application I'm developing, and the million dollar question is how do I list a set of items that are "within X miles" of "my location" since there are million applications that do that, I was surprised to find that only Google Maps API has a free web service for that, and worse, it is only supported if used within a Google Map. So do I have to develop my own distance calculator? is there any free / paid service that will allow me to at least transform an

localising postal / physical address display from database fields

十年热恋 提交于 2019-11-29 07:24:19
问题 Can anyone point me to a list of international postal / residential / delivery address format templates that use some kind of parseable standard vocabulary for address parts? The ideal list contains a country code then a format using replaceable tokens so I can substitute database address fields into a template to produce something printable in the local format. for example NZ | [first_name] [family_name]\n[company_name]\n[street_address]\n[city] [post_code]\n[country] AU | [first_name]

Best Practice / Standard for storing an Address in a SQL Database

蓝咒 提交于 2019-11-28 06:27:43
I am wondering if there is some sort of "standard" for storing US addresses in a database? It seems this is a common task, and there should be some sort of a standard. What I am looking for is a specific schema of how the database tables should work and interact, already in third normal form, including data types (MySQL). A good UML document would work. Maybe I'm just being lazy, but this is a very common task, and I am sure someone has published an efficient way to do this somewhere. I just don't know where to look and Google isn't helping. Please point me to the resource. Thanks. EDIT

Parse A Steet Address into components

删除回忆录丶 提交于 2019-11-28 04:33:24
问题 Does anyone have a php class, or regex to parse an address into components? At least, it should break up into these components: street info, state, zip, country 回答1: A library/language agnostic solution would be to use Google's geocoder for this. It can return detailed, broken-down information about a given address. http://code.google.com/apis/maps/documentation/services.html#Geocoding_Structured 回答2: Edit: Use this just as an example, if your data is all formatted very similarly. As Strager

What is the “best” way to store international addresses in a database?

允我心安 提交于 2019-11-27 18:43:46
What is the " best " way to store international addresses in a database? Answer in the form of a schema and an explanation of the reasons why you chose to normalize (or not) the way you did. Also explain why you chose the type and length of each field. Note: You decide what fields you think are necessary. Plain freeform text. Validating all the world's post/zip codes is too hard; a fixed list of countries is too politically sensitive; mandatory state/region/other administrative subdivision is just plain inappropriate (all too often I'm asked which county I live in--when I don't, because

How many address fields would you use for a UK database?

▼魔方 西西 提交于 2019-11-27 17:49:26
问题 Address records are probably used in most database, but I've seen a number of slightly different sets of fields used to store them. The number of fields seems to vary from 3-7, and sometimes all fields are simple labelled address1..addressN, other times given specific meaning (town, city, etc). This is UK specific, though I'm open to comments about the rest of the world too. Here you need the first line of the address (actually just the number) and the post code to identify the address -

Open Source Address Scrubber?

丶灬走出姿态 提交于 2019-11-27 16:17:00
问题 I have set of names and addresses that have been entered into and excel spreadsheet, but the problem is that the many people that entered the addresses entered them in many different non-standard formats. I want to scrub the addresses before transferring all of of them to my database. Looking around, all I really found in the way of address scrubbers(parsers or formatters) is the one that is put out by Semaphore. For my purposes, I don't really need all of that and I don't want to pay for the

get city from geocoder results?

北战南征 提交于 2019-11-27 11:39:40
Having problems getting the different arrays content from geocoder results. item.formatted_address works but not item.address_components.locality? geocoder.geocode( {'address': request.term }, function(results, status) { response($.map(results, function(item) { alert(item.formatted_address+" "+item.address_components.locality) } }); // the array returned is; "results" : [ { "address_components" : [ { "long_name" : "London", "short_name" : "London", "types" : [ "locality", "political" ] } ], "formatted_address" : "Westminster, London, UK" // rest of array... any help appreciated! Dc v3nt Got

mysql datatype for telephone number and address

懵懂的女人 提交于 2019-11-27 11:06:31
I want to input telephone number in a form, including country code, extension create table if not exists employee( ` country_code_tel int(11), tel_number int(10), extension int(10), mobile bigint(20) ); If tel_number is larger than 15 bit, which datatype can I use, I'd better use Bigint(20) ? create table address( address varchar(255), city varchar(255), country varchar(255), post_code int(11) ); For example, if I have a country code for Canada I can use +2 or 002. Which is better for processing? Thanks for your advice. Well, personally I do not use numeric datatype to store phone numbers or